home *** CD-ROM | disk | FTP | other *** search
MacBinary | 1999-05-04 | 285.8 KB | [BHlp/ABd1] |
open in:
MacOS 8.1
|
Win98
|
DOS
browse contents |
view JSON data
|
view as text
This file was processed as: MacBinary
(archive/macBinary).
Confidence | Program | Detection | Match Type | Support
|
---|
10%
| dexvert
| MacBinary (archive/macBinary)
| fallback
| Supported |
100%
| file
| MacBinary II, inited, Tue May 4 04:13:06 1999, modified Tue May 4 08:05:11 1999, creator 'ABd1', type 'BHlp' "OneClick Help", at 0x80 292473 bytes resource Apple HFS/HFS+ resource fork, map offset 0x4667f, map length 0xffa, data length 0x4657f, at 16 0x003a466f, nextResourceMap 0x4ab5578, fileRef 0x43f0, list offset 0x1c, name offset 0xefe, 2 types, 0x54455854 'TEXT' * 158 resource offset 0x12
| default (weak)
| |
99%
| file
| data
| default
| |
100%
| TrID
| MacBinary 2
| default (weak)
| |
100%
| siegfried
| fmt/1762 MacBinary (II)
| default
| |
100%
| lsar
| MacBinary
| default
|
|
id metadata |
---|
key | value |
---|
macFileType | [BHlp] |
macFileCreator | [ABd1] |
hex view+--------+-------------------------+-------------------------+--------+--------+
|00000000| 00 0d 4f 6e 65 43 6c 69 | 63 6b 20 48 65 6c 70 00 |..OneCli|ck Help.|
|00000010| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000020| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000030| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000040| 00 42 48 6c 70 41 42 64 | 31 01 00 00 00 00 00 00 |.BHlpABd|1.......|
|00000050| 00 00 00 00 00 00 00 00 | 04 76 79 b3 54 5c 92 b3 |........|.vy.T\..|
|00000060| 54 92 f7 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |T.......|........|
|00000070| 00 00 00 00 00 00 00 00 | 00 00 81 81 fc 8a 00 00 |........|........|
|00000080| 00 00 01 00 00 04 66 7f | 00 04 65 7f 00 00 0f fa |......f.|..e.....|
|00000090| 00 3a 46 6f 6c 64 65 72 | 3a 20 20 20 20 20 20 20 |.:Folder|: |
|000000a0| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|000000b0| 0d 4f 6e 65 43 6c 69 63 | 6b 20 48 65 6c 70 76 65 |.OneClic|k Helpve|
|000000c0| 20 c4 6e 69 70 73 62 31 | 31 65 77 72 66 2d 34 20 | .nipsb1|1ewrf-4 |
|000000d0| 00 06 62 7a 79 20 4d 41 | 43 53 01 00 00 00 01 01 |..bzy MA|CS......|
|000000e0| 00 00 00 00 00 00 00 00 | 00 00 80 00 00 00 00 00 |........|........|
|000000f0| 00 00 b3 54 5c 92 00 00 | 00 00 00 04 76 79 00 00 |...T\...|....vy..|
|00000100| 02 40 0a e7 03 f1 00 4c | 00 3a 46 6f 6c 64 65 72 |.@.....L|.:Folder|
|00000110| 3a 41 70 70 65 61 72 61 | 6e 63 65 3a 20 20 20 20 |:Appeara|nce: |
|00000120| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|00000130| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|00000140| 38 2e 35 0a 01 7c ff f7 | 00 06 00 00 00 03 00 00 |8.5..|..|........|
|00000150| 02 20 0a e8 03 f1 20 20 | 00 2a 64 74 70 c4 20 20 |. .... |.*dtp. |
|00000160| 48 44 3a 53 79 73 74 65 | 6d 20 46 6f 6c 64 65 72 |HD:Syste|m Folder|
|00000170| 3a 41 70 70 65 61 72 61 | 6e 63 65 3a 44 65 73 6b |:Appeara|nce:Desk|
|00000180| 00 00 00 b0 41 62 73 6f | 6c 75 74 65 20 66 75 6e |....Abso|lute fun|
|00000190| 63 74 69 6f 6e 0d 0d 53 | 79 6e 74 61 78 0d 41 62 |ction..S|yntax.Ab|
|000001a0| 73 6f 6c 75 74 65 20 6e | 75 6d 62 65 72 0d 0d 44 |solute n|umber..D|
|000001b0| 65 73 63 72 69 70 74 69 | 6f 6e 0d 52 65 74 75 72 |escripti|on.Retur|
|000001c0| 6e 73 20 74 68 65 20 61 | 62 73 6f 6c 75 74 65 20 |ns the a|bsolute |
|000001d0| 76 61 6c 75 65 20 6f 66 | 20 6e 75 6d 62 65 72 2e |value of| number.|
|000001e0| 0d 0d 45 78 61 6d 70 6c | 65 73 0d 2f 2f 20 45 61 |..Exampl|es.// Ea|
|000001f0| 63 68 20 73 74 61 74 65 | 6d 65 6e 74 20 74 79 70 |ch state|ment typ|
|00000200| 65 73 20 74 68 65 20 76 | 61 6c 75 65 20 32 35 0d |es the v|alue 25.|
|00000210| 54 79 70 65 20 41 62 73 | 6f 6c 75 74 65 20 d0 32 |Type Abs|olute .2|
|00000220| 35 0d 54 79 70 65 20 41 | 62 73 6f 6c 75 74 65 20 |5.Type A|bsolute |
|00000230| 32 35 0d 0d 00 00 00 ca | 00 0a 00 00 00 00 00 0f |25......|........|
|00000240| 00 0a 07 d2 00 9c 00 0c | 00 00 00 00 00 00 00 00 |........|........|
|00000250| 00 13 00 0c 00 08 00 03 | 01 9c 00 09 00 00 00 00 |........|........|
|00000260| 00 00 00 00 00 1a 00 0c | 00 08 00 03 00 9c 00 09 |........|........|
|00000270| 00 00 00 00 00 00 00 00 | 00 23 00 0c 00 08 00 03 |........|.#......|
|00000280| 02 9c 00 09 00 00 00 00 | 00 00 00 00 00 2b 00 0c |........|.....+..|
|00000290| 00 08 00 03 01 9c 00 09 | 00 00 00 00 00 00 00 00 |........|........|
|000002a0| 00 37 00 0c 00 08 00 03 | 00 9c 00 09 00 00 00 00 |.7......|........|
|000002b0| 00 00 00 00 00 55 00 0c | 00 08 00 03 02 9c 00 09 |.....U..|........|
|000002c0| 00 00 00 00 00 00 00 00 | 00 5b 00 0c 00 08 00 03 |........|.[......|
|000002d0| 00 9c 00 09 00 00 00 00 | 00 00 00 00 00 5e 00 0c |........|.....^..|
|000002e0| 00 08 00 03 01 9c 00 09 | 00 00 00 00 00 00 00 00 |........|........|
|000002f0| 00 67 00 0c 00 08 00 03 | 00 9c 00 09 00 00 00 00 |.g......|........|
|00000300| 00 00 00 00 04 c9 41 6c | 69 61 73 20 66 75 6e 63 |......Al|ias func|
|00000310| 74 69 6f 6e 0d 0d 53 79 | 6e 74 61 78 0d 41 6c 69 |tion..Sy|ntax.Ali|
|00000320| 61 73 20 70 61 74 68 0d | 0d 44 65 73 63 72 69 70 |as path.|.Descrip|
|00000330| 74 69 6f 6e 0d 52 65 74 | 75 72 6e 73 20 61 6e 20 |tion.Ret|urns an |
|00000340| 61 6c 69 61 73 20 66 6f | 72 20 74 68 65 20 73 70 |alias fo|r the sp|
|00000350| 65 63 69 66 69 65 64 20 | 66 69 6c 65 20 6f 72 20 |ecified |file or |
|00000360| 66 6f 6c 64 65 72 2c 20 | 66 6f 72 6d 61 74 74 65 |folder, |formatte|
|00000370| 64 20 61 73 20 61 20 73 | 74 72 69 6e 67 2e 20 54 |d as a s|tring. T|
|00000380| 68 65 20 61 6c 69 61 73 | 20 73 74 72 69 6e 67 20 |he alias| string |
|00000390| 63 61 6e 20 62 65 20 73 | 74 6f 72 65 64 20 66 6f |can be s|tored fo|
|000003a0| 72 20 6c 61 74 65 72 20 | 75 73 65 20 61 6e 64 20 |r later |use and |
|000003b0| 63 61 6e 20 6c 6f 63 61 | 74 65 20 74 68 65 20 66 |can loca|te the f|
|000003c0| 69 6c 65 20 69 74 20 72 | 65 70 72 65 73 65 6e 74 |ile it r|epresent|
|000003d0| 73 20 65 76 65 6e 20 69 | 66 20 74 68 65 20 66 69 |s even i|f the fi|
|000003e0| 6c 65 20 69 73 20 6d 6f | 76 65 64 20 6f 72 20 72 |le is mo|ved or r|
|000003f0| 65 6e 61 6d 65 64 2e 20 | 54 68 65 20 61 6c 69 61 |enamed. |The alia|
|00000400| 73 20 73 74 72 69 6e 67 | 20 63 61 6e 20 62 65 20 |s string| can be |
|00000410| 70 61 73 73 65 64 20 74 | 6f 20 61 6e 79 20 63 6f |passed t|o any co|
|00000420| 6d 6d 61 6e 64 2c 20 66 | 75 6e 63 74 69 6f 6e 2c |mmand, f|unction,|
|00000430| 20 6f 72 20 6f 62 6a 65 | 63 74 20 74 68 61 74 20 | or obje|ct that |
|00000440| 65 78 70 65 63 74 73 20 | 61 20 66 69 6c 65 20 70 |expects |a file p|
|00000450| 61 74 68 20 61 73 20 61 | 20 70 61 72 61 6d 65 74 |ath as a| paramet|
|00000460| 65 72 2c 20 73 75 63 68 | 20 61 73 20 4f 70 65 6e |er, such| as Open|
|00000470| 20 61 6e 64 20 74 68 65 | 20 46 69 6c 65 20 6f 62 | and the| File ob|
|00000480| 6a 65 63 74 2e 20 0d 0d | 59 6f 75 20 63 61 6e 20 |ject. ..|You can |
|00000490| 61 6c 73 6f 20 75 73 65 | 20 61 6e 20 61 6c 69 61 |also use| an alia|
|000004a0| 73 20 73 74 72 69 6e 67 | 20 74 6f 20 73 65 6e 64 |s string| to send|
|000004b0| 20 61 6e 20 61 6c 69 61 | 73 20 69 6e 20 61 6e 20 | an alia|s in an |
|000004c0| 41 70 70 6c 65 20 65 76 | 65 6e 74 20 74 6f 20 61 |Apple ev|ent to a|
|000004d0| 70 70 6c 69 63 61 74 69 | 6f 6e 73 20 74 68 61 74 |pplicati|ons that|
|000004e0| 20 72 65 71 75 69 72 65 | 20 61 6c 69 61 73 20 70 | require| alias p|
|000004f0| 61 72 61 6d 65 74 65 72 | 73 2e 20 54 68 65 20 66 |arameter|s. The f|
|00000500| 75 6e 63 74 69 6f 6e 20 | 66 6f 72 6d 61 74 73 20 |unction |formats |
|00000510| 74 68 65 20 61 6c 69 61 | 73 20 73 74 72 69 6e 67 |the alia|s string|
|00000520| 20 69 6e 20 74 68 65 20 | 73 61 6d 65 20 66 6f 72 | in the |same for|
|00000530| 6d 61 74 20 72 65 71 75 | 69 72 65 64 20 62 79 20 |mat requ|ired by |
|00000540| 74 68 65 20 50 72 6f 63 | 65 73 73 2e 53 65 6e 64 |the Proc|ess.Send|
|00000550| 41 45 20 6d 65 73 73 61 | 67 65 2e 0d 0d 45 78 61 |AE messa|ge...Exa|
|00000560| 6d 70 6c 65 0d 4f 6e 20 | 44 72 61 67 41 6e 64 44 |mple.On |DragAndD|
|00000570| 72 6f 70 0d 20 20 20 20 | 20 2f 2f 20 53 74 6f 72 |rop. | // Stor|
|00000580| 65 20 61 6e 20 61 6c 69 | 61 73 20 74 6f 20 74 68 |e an ali|as to th|
|00000590| 65 20 64 72 6f 70 70 65 | 64 20 66 69 6c 65 20 69 |e droppe|d file i|
|000005a0| 6e 20 61 20 73 74 61 74 | 69 63 20 76 61 72 69 61 |n a stat|ic varia|
|000005b0| 62 6c 65 0d 20 20 20 20 | 20 56 61 72 69 61 62 6c |ble. | Variabl|
|000005c0| 65 20 53 74 61 74 69 63 | 20 74 68 65 41 6c 69 61 |e Static| theAlia|
|000005d0| 73 0d 20 20 20 20 20 74 | 68 65 41 6c 69 61 73 20 |s. t|heAlias |
|000005e0| 3d 20 41 6c 69 61 73 20 | 47 65 74 44 72 61 67 41 |= Alias |GetDragA|
|000005f0| 6e 64 44 72 6f 70 20 31 | 0d 45 6e 64 20 44 72 61 |ndDrop 1|.End Dra|
|00000600| 67 41 6e 64 44 72 6f 70 | 0d 4f 6e 20 4d 6f 75 73 |gAndDrop|.On Mous|
|00000610| 65 55 70 0d 20 20 20 20 | 20 56 61 72 69 61 62 6c |eUp. | Variabl|
|00000620| 65 20 53 74 61 74 69 63 | 20 74 68 65 41 6c 69 61 |e Static| theAlia|
|00000630| 73 0d 20 20 20 20 20 49 | 66 20 4f 70 74 69 6f 6e |s. I|f Option|
|00000640| 4b 65 79 0d 20 20 20 20 | 20 2f 2f 20 44 69 73 70 |Key. | // Disp|
|00000650| 6c 61 79 20 74 68 65 20 | 70 61 74 68 20 74 6f 20 |lay the |path to |
|00000660| 74 68 65 20 61 6c 69 61 | 73 d5 20 70 61 72 65 6e |the alia|s. paren|
|00000670| 74 0d 20 20 20 20 20 20 | 20 20 20 20 4d 65 73 73 |t. | Mess|
|00000680| 61 67 65 20 46 69 6c 65 | 28 74 68 65 41 6c 69 61 |age File|(theAlia|
|00000690| 73 29 2e 4f 72 69 67 69 | 6e 61 6c 0d 20 20 20 20 |s).Origi|nal. |
|000006a0| 20 45 6c 73 65 20 49 66 | 20 43 6f 6d 6d 61 6e 64 | Else If| Command|
|000006b0| 4b 65 79 0d 20 20 20 20 | 20 2f 2f 20 44 69 73 70 |Key. | // Disp|
|000006c0| 6c 61 79 20 74 68 65 20 | 61 6c 69 61 73 20 73 74 |lay the |alias st|
|000006d0| 72 69 6e 67 2c 20 6a 75 | 73 74 20 66 6f 72 20 66 |ring, ju|st for f|
|000006e0| 75 6e 0d 20 20 20 20 20 | 20 20 20 20 20 4d 65 73 |un. | Mes|
|000006f0| 73 61 67 65 20 74 68 65 | 41 6c 69 61 73 0d 20 20 |sage the|Alias. |
|00000700| 20 20 20 45 6c 73 65 20 | 0d 20 20 20 20 20 2f 2f | Else |. //|
|00000710| 20 4f 70 65 6e 20 74 68 | 65 20 66 69 6c 65 20 70 | Open th|e file p|
|00000720| 6f 69 6e 74 65 64 20 74 | 6f 20 62 79 20 74 68 65 |ointed t|o by the|
|00000730| 20 61 6c 69 61 73 0d 20 | 20 20 20 20 2f 2f 20 53 | alias. | // S|
|00000740| 74 69 6c 6c 20 77 6f 72 | 6b 73 20 65 76 65 6e 20 |till wor|ks even |
|00000750| 69 66 20 74 68 65 20 6f | 72 69 67 69 6e 61 6c 20 |if the o|riginal |
|00000760| 66 69 6c 65 20 69 73 20 | 6d 6f 76 65 64 20 6f 72 |file is |moved or|
|00000770| 20 72 65 6e 61 6d 65 64 | 0d 20 20 20 20 20 20 20 | renamed|. |
|00000780| 20 20 20 4f 70 65 6e 20 | 74 68 65 41 6c 69 61 73 | Open |theAlias|
|00000790| 0d 20 20 20 20 20 45 6e | 64 20 49 66 20 0d 45 6e |. En|d If .En|
|000007a0| 64 20 4d 6f 75 73 65 55 | 70 0d 0d 53 65 65 20 41 |d MouseU|p..See A|
|000007b0| 6c 73 6f 0d 4f 70 65 6e | 20 63 6f 6d 6d 61 6e 64 |lso.Open| command|
|000007c0| 2c 20 46 69 6c 65 20 6f | 62 6a 65 63 74 0d 0d 00 |, File o|bject...|
|000007d0| 00 00 ca 00 0a 00 00 00 | 00 00 0f 00 0a 07 d2 00 |........|........|
|000007e0| 9c 00 0c 00 00 00 00 00 | 00 00 00 00 10 00 0c 00 |........|........|
|000007f0| 08 00 03 01 9c 00 09 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000800| 17 00 0c 00 08 00 03 00 | 9c 00 09 00 00 00 00 00 |........|........|
|00000810| 00 00 00 00 1d 00 0c 00 | 08 00 03 02 9c 00 09 00 |........|........|
|00000820| 00 00 00 00 00 00 00 00 | 23 00 0c 00 08 00 03 01 |........|#.......|
|00000830| 9c 00 09 00 00 00 00 00 | 00 00 00 00 2f 00 0c 00 |........|..../...|
|00000840| 08 00 03 00 9c 00 09 00 | 00 00 00 00 00 00 00 02 |........|........|
|00000850| 57 00 0c 00 08 00 03 01 | 9c 00 09 00 00 00 00 00 |W.......|........|
|00000860| 00 00 00 02 5f 00 0c 00 | 08 00 03 00 9c 00 09 00 |...._...|........|
|00000870| 00 00 00 00 00 00 00 04 | a5 00 0c 00 08 00 03 01 |........|........|
|00000880| 9c 00 09 00 00 00 00 00 | 00 00 00 04 ae 00 0c 00 |........|........|
|00000890| 08 00 03 00 9c 00 09 00 | 00 00 00 00 00 00 00 07 |........|........|
|000008a0| 03 41 70 70 6c 65 53 63 | 72 69 70 74 20 63 6f 6d |.AppleSc|ript com|
|000008b0| 6d 61 6e 64 0d 0d 53 79 | 6e 74 61 78 0d 41 70 70 |mand..Sy|ntax.App|
|000008c0| 6c 65 53 63 72 69 70 74 | 20 63 6f 6d 70 69 6c 65 |leScript| compile|
|000008d0| 64 2d 73 63 72 69 70 74 | 2d 66 69 6c 65 0d 0d 41 |d-script|-file..A|
|000008e0| 70 70 6c 65 53 63 72 69 | 70 74 0d 20 20 20 20 20 |ppleScri|pt. |
|000008f0| 61 70 70 6c 65 73 63 72 | 69 70 74 2d 73 74 61 74 |applescr|ipt-stat|
|00000900| 65 6d 65 6e 74 73 0d 45 | 6e 64 20 41 70 70 6c 65 |ements.E|nd Apple|
|00000910| 53 63 72 69 70 74 0d 0d | 44 65 73 63 72 69 70 74 |Script..|Descript|
|00000920| 69 6f 6e 0d 52 75 6e 73 | 20 61 20 63 6f 6d 70 69 |ion.Runs| a compi|
|00000930| 6c 65 64 20 41 70 70 6c | 65 53 63 72 69 70 74 20 |led Appl|eScript |
|00000940| 73 63 72 69 70 74 20 66 | 69 6c 65 2c 20 6f 72 20 |script f|ile, or |
|00000950| 69 6e 64 69 63 61 74 65 | 73 20 74 68 65 20 62 65 |indicate|s the be|
|00000960| 67 69 6e 6e 69 6e 67 20 | 61 6e 64 20 65 6e 64 20 |ginning |and end |
|00000970| 6f 66 20 41 70 70 6c 65 | 53 63 72 69 70 74 20 63 |of Apple|Script c|
|00000980| 6f 64 65 2e 20 0d 0d 43 | 6f 6d 70 69 6c 65 64 2d |ode. ..C|ompiled-|
|00000990| 73 63 72 69 70 74 20 69 | 73 20 61 20 70 61 74 68 |script i|s a path|
|000009a0| 20 74 6f 20 61 20 63 6f | 6d 70 69 6c 65 64 20 41 | to a co|mpiled A|
|000009b0| 70 70 6c 65 53 63 72 69 | 70 74 20 73 63 72 69 70 |ppleScri|pt scrip|
|000009c0| 74 2e 20 49 66 20 79 6f | 75 d5 76 65 20 77 72 69 |t. If yo|u.ve wri|
|000009d0| 74 74 65 6e 20 61 6e 64 | 20 63 6f 6d 70 69 6c 65 |tten and| compile|
|000009e0| 64 20 61 20 73 63 72 69 | 70 74 20 75 73 69 6e 67 |d a scri|pt using|
|000009f0| 20 41 70 70 6c 65 d5 73 | 20 53 63 72 69 70 74 20 | Apple.s| Script |
|00000a00| 45 64 69 74 6f 72 2c 20 | 75 73 65 20 74 68 65 20 |Editor, |use the |
|00000a10| 41 70 70 6c 65 53 63 72 | 69 70 74 20 63 6f 6d 6d |AppleScr|ipt comm|
|00000a20| 61 6e 64 20 74 6f 20 72 | 75 6e 20 74 68 65 20 63 |and to r|un the c|
|00000a30| 6f 6d 70 69 6c 65 64 20 | 73 63 72 69 70 74 2e 0d |ompiled |script..|
|00000a40| 0d 59 6f 75 20 63 61 6e | 20 61 6c 73 6f 20 75 73 |.You can| also us|
|00000a50| 65 20 74 68 65 20 41 70 | 70 6c 65 53 63 72 69 70 |e the Ap|pleScrip|
|00000a60| 74 20 63 6f 6d 6d 61 6e | 64 20 74 6f 20 65 6d 62 |t comman|d to emb|
|00000a70| 65 64 20 41 70 70 6c 65 | 53 63 72 69 70 74 20 73 |ed Apple|Script s|
|00000a80| 74 61 74 65 6d 65 6e 74 | 73 20 77 69 74 68 69 6e |tatement|s within|
|00000a90| 20 61 6e 20 45 61 73 79 | 53 63 72 69 70 74 20 73 | an Easy|Script s|
|00000aa0| 63 72 69 70 74 2e 20 50 | 75 74 20 74 68 65 20 41 |cript. P|ut the A|
|00000ab0| 70 70 6c 65 53 63 72 69 | 70 74 20 73 74 61 74 65 |ppleScri|pt state|
|00000ac0| 6d 65 6e 74 73 20 62 65 | 74 77 65 65 6e 20 74 68 |ments be|tween th|
|00000ad0| 65 20 41 70 70 6c 65 53 | 63 72 69 70 74 20 61 6e |e AppleS|cript an|
|00000ae0| 64 20 45 6e 64 20 41 70 | 70 6c 65 53 63 72 69 70 |d End Ap|pleScrip|
|00000af0| 74 20 63 6f 6d 6d 61 6e | 64 73 2e 20 57 68 65 6e |t comman|ds. When|
|00000b00| 20 79 6f 75 20 73 61 76 | 65 20 74 68 65 20 62 75 | you sav|e the bu|
|00000b10| 74 74 6f 6e d5 73 20 73 | 63 72 69 70 74 2c 20 4f |tton.s s|cript, O|
|00000b20| 6e 65 43 6c 69 63 6b 20 | 74 65 6c 6c 73 20 74 68 |neClick |tells th|
|00000b30| 65 20 41 70 70 6c 65 53 | 63 72 69 70 74 20 65 78 |e AppleS|cript ex|
|00000b40| 74 65 6e 73 69 6f 6e 20 | 74 6f 20 63 6f 6d 70 69 |tension |to compi|
|00000b50| 6c 65 20 74 68 65 20 65 | 6d 62 65 64 64 65 64 20 |le the e|mbedded |
|00000b60| 41 70 70 6c 65 53 63 72 | 69 70 74 20 63 6f 64 65 |AppleScr|ipt code|
|00000b70| 2e 20 43 6f 6d 70 69 6c | 69 6e 67 20 41 70 70 6c |. Compil|ing Appl|
|00000b80| 65 53 63 72 69 70 74 20 | 63 6f 64 65 20 6d 61 79 |eScript |code may|
|00000b90| 20 74 61 6b 65 20 61 20 | 66 65 77 20 6d 6f 6d 65 | take a |few mome|
|00000ba0| 6e 74 73 2c 20 63 6f 6d | 70 61 72 65 64 20 74 6f |nts, com|pared to|
|00000bb0| 20 74 68 65 20 6e 65 61 | 72 2d 69 6e 73 74 61 6e | the nea|r-instan|
|00000bc0| 74 61 6e 65 6f 75 73 20 | 63 6f 6d 70 69 6c 69 6e |taneous |compilin|
|00000bd0| 67 20 6f 66 20 45 61 73 | 79 53 63 72 69 70 74 20 |g of Eas|yScript |
|00000be0| 63 6f 64 65 2e 0d 0d 41 | 70 70 6c 65 53 63 72 69 |code...A|ppleScri|
|00000bf0| 70 74 20 73 63 72 69 70 | 74 73 20 74 68 61 74 20 |pt scrip|ts that |
|00000c00| 63 68 61 6e 67 65 20 61 | 6e 79 20 70 72 6f 70 65 |change a|ny prope|
|00000c10| 72 74 69 65 73 20 77 69 | 74 68 69 6e 20 74 68 65 |rties wi|thin the|
|00000c20| 20 73 63 72 69 70 74 20 | 67 65 74 20 75 70 64 61 | script |get upda|
|00000c30| 74 65 64 20 77 69 74 68 | 20 74 68 65 20 6e 65 77 |ted with| the new|
|00000c40| 20 70 72 6f 70 65 72 74 | 69 65 73 20 6f 6e 6c 79 | propert|ies only|
|00000c50| 20 69 66 20 74 68 65 20 | 73 63 72 69 70 74 20 69 | if the |script i|
|00000c60| 73 20 69 6e 20 61 20 63 | 6f 6d 70 69 6c 65 64 20 |s in a c|ompiled |
|00000c70| 73 63 72 69 70 74 20 66 | 69 6c 65 2e 20 41 70 70 |script f|ile. App|
|00000c80| 6c 65 53 63 72 69 70 74 | 73 20 65 6d 62 65 64 64 |leScript|s embedd|
|00000c90| 65 64 20 77 69 74 68 69 | 6e 20 45 61 73 79 53 63 |ed withi|n EasySc|
|00000ca0| 72 69 70 74 20 73 63 72 | 69 70 74 73 20 64 6f 20 |ript scr|ipts do |
|00000cb0| 6e 6f 74 20 67 65 74 20 | 74 68 65 69 72 20 70 72 |not get |their pr|
|00000cc0| 6f 70 65 72 74 69 65 73 | 20 75 70 64 61 74 65 64 |operties| updated|
|00000cd0| 2e 0d 0d 59 6f 75 20 6d | 75 73 74 20 68 61 76 65 |...You m|ust have|
|00000ce0| 20 74 68 65 20 41 70 70 | 6c 65 53 63 72 69 70 74 | the App|leScript|
|00000cf0| 20 73 6f 66 74 77 61 72 | 65 20 69 6e 73 74 61 6c | softwar|e instal|
|00000d00| 6c 65 64 20 74 6f 20 75 | 73 65 20 74 68 69 73 20 |led to u|se this |
|00000d10| 63 6f 6d 6d 61 6e 64 2e | 20 41 70 70 6c 65 53 63 |command.| AppleSc|
|00000d20| 72 69 70 74 20 69 73 20 | 69 6e 63 6c 75 64 65 64 |ript is |included|
|00000d30| 20 69 6e 20 4d 61 63 20 | 4f 53 20 37 2e 35 20 61 | in Mac |OS 7.5 a|
|00000d40| 6e 64 20 6c 61 74 65 72 | 2e 0d 0d 46 6f 72 20 6d |nd later|...For m|
|00000d50| 6f 72 65 20 69 6e 66 6f | 72 6d 61 74 69 6f 6e 20 |ore info|rmation |
|00000d60| 6f 6e 20 69 6e 74 65 67 | 72 61 74 69 6e 67 20 41 |on integ|rating A|
|00000d70| 70 70 6c 65 53 63 72 69 | 70 74 20 77 69 74 68 20 |ppleScri|pt with |
|00000d80| 45 61 73 79 53 63 72 69 | 70 74 2c 20 69 6e 63 6c |EasyScri|pt, incl|
|00000d90| 75 64 69 6e 67 20 68 6f | 77 20 74 6f 20 73 68 61 |uding ho|w to sha|
|00000da0| 72 65 20 64 61 74 61 20 | 62 65 74 77 65 65 6e 20 |re data |between |
|00000db0| 65 6e 76 69 72 6f 6e 6d | 65 6e 74 73 20 61 6e 64 |environm|ents and|
|00000dc0| 20 68 6f 77 20 74 6f 20 | 65 6d 62 65 64 20 45 61 | how to |embed Ea|
|00000dd0| 73 79 53 63 72 69 70 74 | 20 77 69 74 68 69 6e 20 |syScript| within |
|00000de0| 41 70 70 6c 65 53 63 72 | 69 70 74 20 61 70 70 6c |AppleScr|ipt appl|
|00000df0| 65 74 73 20 6f 72 20 63 | 6f 6d 70 69 6c 65 64 20 |ets or c|ompiled |
|00000e00| 73 63 72 69 70 74 73 2c | 20 73 65 65 20 41 70 70 |scripts,| see App|
|00000e10| 65 6e 64 69 78 20 42 2c | 20 d2 49 6e 74 65 67 72 |endix B,| .Integr|
|00000e20| 61 74 69 6f 6e 20 77 69 | 74 68 20 41 70 70 6c 65 |ation wi|th Apple|
|00000e30| 53 63 72 69 70 74 d3 2e | 0d 0d 45 78 61 6d 70 6c |Script..|..Exampl|
|00000e40| 65 73 0d 2f 2f 20 52 75 | 6e 20 74 68 65 20 53 74 |es.// Ru|n the St|
|00000e50| 61 72 74 20 46 69 6c 65 | 20 53 68 61 72 69 6e 67 |art File| Sharing|
|00000e60| 20 73 63 72 69 70 74 20 | 69 6e 63 6c 75 64 65 64 | script |included|
|00000e70| 20 77 69 74 68 20 4d 61 | 63 20 4f 53 20 37 2e 35 | with Ma|c OS 7.5|
|00000e80| 2e 0d 41 70 70 6c 65 53 | 63 72 69 70 74 20 22 4d |..AppleS|cript "M|
|00000e90| 61 63 20 48 44 3a 41 75 | 74 6f 6d 61 74 65 64 20 |ac HD:Au|tomated |
|00000ea0| 54 61 73 6b 73 3a 53 74 | 61 72 74 20 46 69 6c 65 |Tasks:St|art File|
|00000eb0| 20 53 68 61 72 69 6e 67 | 22 0d 0d 2f 2f 20 4f 70 | Sharing|"..// Op|
|00000ec0| 65 6e 20 74 68 65 20 46 | 69 6e 64 65 72 d5 73 20 |en the F|inder.s |
|00000ed0| 22 41 62 6f 75 74 20 54 | 68 69 73 20 4d 61 63 69 |"About T|his Maci|
|00000ee0| 6e 74 6f 73 68 22 20 77 | 69 6e 64 6f 77 2e 0d 41 |ntosh" w|indow..A|
|00000ef0| 70 70 6c 65 53 63 72 69 | 70 74 0d 20 20 20 20 20 |ppleScri|pt. |
|00000f00| 74 65 6c 6c 20 61 70 70 | 6c 69 63 61 74 69 6f 6e |tell app|lication|
|00000f10| 20 22 46 69 6e 64 65 72 | 22 0d 20 20 20 20 20 20 | "Finder|". |
|00000f20| 20 20 20 20 61 63 74 69 | 76 61 74 65 0d 20 20 20 | acti|vate. |
|00000f30| 20 20 20 20 20 20 20 6f | 70 65 6e 20 61 62 6f 75 | o|pen abou|
|00000f40| 74 20 74 68 69 73 20 63 | 6f 6d 70 75 74 65 72 0d |t this c|omputer.|
|00000f50| 20 20 20 20 20 65 6e 64 | 20 74 65 6c 6c 0d 45 6e | end| tell.En|
|00000f60| 64 20 41 70 70 6c 65 53 | 63 72 69 70 74 0d 0d 53 |d AppleS|cript..S|
|00000f70| 65 65 20 41 6c 73 6f 0d | 41 70 70 65 6e 64 69 78 |ee Also.|Appendix|
|00000f80| 20 42 2c 20 d2 49 6e 74 | 65 67 72 61 74 69 6f 6e | B, .Int|egration|
|00000f90| 20 77 69 74 68 20 41 70 | 70 6c 65 53 63 72 69 70 | with Ap|pleScrip|
|00000fa0| 74 d3 0d 0d 00 00 01 2e | 00 0f 00 00 00 00 00 0f |t.......|........|
|00000fb0| 00 0a 07 d2 00 9c 00 0c | 00 00 00 00 00 00 00 00 |........|........|
|00000fc0| 00 15 00 0c 00 08 00 03 | 01 9c 00 09 00 00 00 00 |........|........|
|00000fd0| 00 00 00 00 00 1c 00 0c | 00 08 00 03 00 9c 00 09 |........|........|
|00000fe0| 00 00 00 00 00 00 00 00 | 00 28 00 0c 00 08 00 03 |........|.(......|
|00000ff0| 02 9c 00 09 00 00 00 00 | 00 00 00 00 00 3e 00 0c |........|.....>..|
|00001000| 00 08 00 03 00 9c 00 09 | 00 00 00 00 00 00 00 00 |........|........|
|00001010| 00 4a 00 0c 00 08 00 03 | 02 9c 00 09 00 00 00 00 |.J......|........|
|00001020| 00 00 00 00 00 66 00 0c | 00 08 00 03 00 9c 00 09 |.....f..|........|
|00001030| 00 00 00 00 00 00 00 00 | 00 77 00 0c 00 08 00 03 |........|.w......|
|00001040| 01 9c 00 09 00 00 00 00 | 00 00 00 00 00 83 00 0c |........|........|
|00001050| 00 08 00 03 00 9c 00 09 | 00 00 00 00 00 00 00 00 |........|........|
|00001060| 00 e6 00 0c 00 08 00 03 | 02 9c 00 09 00 00 00 00 |........|........|
|00001070| 00 00 00 00 00 f5 00 0c | 00 08 00 03 00 9c 00 09 |........|........|
|00001080| 00 00 00 00 00 00 00 00 | 05 99 00 0c 00 08 00 03 |........|........|
|00001090| 01 9c 00 09 00 00 00 00 | 00 00 00 00 05 a2 00 0c |........|........|
|000010a0| 00 08 00 03 00 9c 00 09 | 00 00 00 00 00 00 00 00 |........|........|
|000010b0| 06 ce 00 0c 00 08 00 03 | 01 9c 00 09 00 00 00 00 |........|........|
|000010c0| 00 00 00 00 06 d7 00 0c | 00 08 00 03 00 9c 00 09 |........|........|
|000010d0| 00 00 00 00 00 00 00 00 | 02 e0 41 73 6b 42 75 74 |........|..AskBut|
|000010e0| 74 6f 6e 20 66 75 6e 63 | 74 69 6f 6e 0d 0d 53 79 |ton func|tion..Sy|
|000010f0| 6e 74 61 78 0d 41 73 6b | 42 75 74 74 6f 6e 20 5b |ntax.Ask|Button [|
|00001100| 70 72 6f 6d 70 74 5d 20 | 5b 2c 20 62 75 74 74 6f |prompt] |[, butto|
|00001110| 6e 2d 6c 69 73 74 5d 20 | 7c 20 5b 2c 20 62 75 74 |n-list] || [, but|
|00001120| 74 6f 6e 31 20 5b 2c 20 | 62 75 74 74 6f 6e 32 c9 |ton1 [, |button2.|
|00001130| 5d 5d 0d 0d 44 65 73 63 | 72 69 70 74 69 6f 6e 0d |]]..Desc|ription.|
|00001140| 44 69 73 70 6c 61 79 73 | 20 61 20 64 69 61 6c 6f |Displays| a dialo|
|00001150| 67 20 62 6f 78 20 77 69 | 74 68 20 74 68 65 20 73 |g box wi|th the s|
|00001160| 70 65 63 69 66 69 65 64 | 20 70 72 6f 6d 70 74 20 |pecified| prompt |
|00001170| 6d 65 73 73 61 67 65 20 | 61 6e 64 20 6c 65 74 73 |message |and lets|
|00001180| 20 79 6f 75 20 63 6c 69 | 63 6b 20 6f 6e 65 20 6f | you cli|ck one o|
|00001190| 66 20 75 70 20 74 6f 20 | 65 69 67 68 74 20 62 75 |f up to |eight bu|
|000011a0| 74 74 6f 6e 73 2e 20 49 | 66 20 79 6f 75 20 64 6f |ttons. I|f you do|
|000011b0| 6e d5 74 20 73 70 65 63 | 69 66 79 20 61 6e 79 20 |n.t spec|ify any |
|000011c0| 62 75 74 74 6f 6e 73 2c | 20 74 68 65 20 64 69 61 |buttons,| the dia|
|000011d0| 6c 6f 67 20 62 6f 78 20 | 68 61 73 20 61 20 73 69 |log box |has a si|
|000011e0| 6e 67 6c 65 20 4f 4b 20 | 62 75 74 74 6f 6e 2e 20 |ngle OK |button. |
|000011f0| 54 68 65 20 41 73 6b 42 | 75 74 74 6f 6e 20 66 75 |The AskB|utton fu|
|00001200| 6e 63 74 69 6f 6e 20 72 | 65 74 75 72 6e 73 20 74 |nction r|eturns t|
|00001210| 68 65 20 6e 75 6d 62 65 | 72 20 28 31 d0 38 29 20 |he numbe|r (1.8) |
|00001220| 6f 66 20 74 68 65 20 62 | 75 74 74 6f 6e 20 63 6c |of the b|utton cl|
|00001230| 69 63 6b 65 64 2e 0d 0d | 42 75 74 74 6f 6e 20 6e |icked...|Button n|
|00001240| 61 6d 65 73 20 63 61 6e | 20 65 69 74 68 65 72 20 |ames can| either |
|00001250| 62 65 20 70 61 73 73 65 | 64 20 69 6e 20 6f 6e 65 |be passe|d in one|
|00001260| 20 70 61 72 61 6d 65 74 | 65 72 20 61 73 20 61 20 | paramet|er as a |
|00001270| 6c 69 73 74 2c 20 6f 72 | 20 61 73 20 73 65 70 61 |list, or| as sepa|
|00001280| 72 61 74 65 20 70 61 72 | 61 6d 65 74 65 72 73 2c |rate par|ameters,|
|00001290| 20 6f 6e 65 20 62 75 74 | 74 6f 6e 20 6e 61 6d 65 | one but|ton name|
|000012a0| 20 70 65 72 20 70 61 72 | 61 6d 65 74 65 72 2e 0d | per par|ameter..|
|000012b0| 0d 45 78 61 6d 70 6c 65 | 73 0d 56 61 72 69 61 62 |.Example|s.Variab|
|000012c0| 6c 65 20 74 68 65 41 6e | 73 77 65 72 0d 74 68 65 |le theAn|swer.the|
|000012d0| 41 6e 73 77 65 72 20 3d | 20 41 73 6b 42 75 74 74 |Answer =| AskButt|
|000012e0| 6f 6e 20 22 46 61 76 6f | 72 69 74 65 20 66 6c 61 |on "Favo|rite fla|
|000012f0| 76 6f 72 3f 22 2c 20 22 | 43 68 6f 63 6f 6c 61 74 |vor?", "|Chocolat|
|00001300| 65 3c 72 65 74 75 72 6e | 3e 53 74 72 61 77 62 65 |e<return|>Strawbe|
|00001310| 72 72 79 3c 72 65 74 75 | 72 6e 3e 42 61 6e 61 6e |rry<retu|rn>Banan|
|00001320| 61 22 0d 2f 2f 20 54 79 | 70 65 73 20 31 2c 20 32 |a".// Ty|pes 1, 2|
|00001330| 2c 20 6f 72 20 33 20 64 | 65 70 65 6e 64 69 6e 67 |, or 3 d|epending|
|00001340| 20 6f 6e 20 74 68 65 20 | 62 75 74 74 6f 6e 20 63 | on the |button c|
|00001350| 6c 69 63 6b 65 64 20 28 | 31 3d 43 68 6f 63 6f 6c |licked (|1=Chocol|
|00001360| 61 74 65 2c 20 32 3d 20 | 53 74 72 61 77 62 65 72 |ate, 2= |Strawber|
|00001370| 72 79 2c 20 33 3d 42 61 | 6e 61 6e 61 29 0d 54 79 |ry, 3=Ba|nana).Ty|
|00001380| 70 65 20 74 68 65 41 6e | 73 77 65 72 0d 0d 53 65 |pe theAn|swer..Se|
|00001390| 65 20 41 6c 73 6f 0d 4d | 65 73 73 61 67 65 20 63 |e Also.M|essage c|
|000013a0| 6f 6d 6d 61 6e 64 2c 20 | 41 73 6b 4c 69 73 74 20 |ommand, |AskList |
|000013b0| 66 75 6e 63 74 69 6f 6e | 0d 0d 00 00 01 7e 00 13 |function|.....~..|
|000013c0| 00 00 00 00 00 0f 00 0a | 07 d2 00 9c 00 0c 00 00 |........|........|
|000013d0| 00 00 00 00 00 00 00 14 | 00 0c 00 08 00 03 01 9c |........|........|
|000013e0| 00 09 00 00 00 00 00 00 | 00 00 00 1b 00 0c 00 08 |........|........|
|000013f0| 00 03 00 9c 00 09 00 00 | 00 00 00 00 00 00 00 26 |........|.......&|
|00001400| 00 0c 00 08 00 03 02 9c | 00 09 00 00 00 00 00 00 |........|........|
|00001410| 00 00 00 2c 00 0c 00 08 | 00 03 00 9c 00 09 00 00 |...,....|........|
|00001420| 00 00 00 00 00 00 00 31 | 00 0c 00 08 00 03 02 9c |.......1|........|
|00001430| 00 09 00 00 00 00 00 00 | 00 00 00 3c 00 0c 00 08 |........|...<....|
|00001440| 00 03 00 9c 00 09 00 00 | 00 00 00 00 00 00 00 43 |........|.......C|
|00001450| 00 0c 00 08 00 03 02 9c | 00 09 00 00 00 00 00 00 |........|........|
|00001460| 00 00 00 4a 00 0c 00 08 | 00 03 00 9c 00 09 00 00 |...J....|........|
|00001470| 00 00 00 00 00 00 00 4e | 00 0c 00 08 00 03 02 9c |.......N|........|
|00001480| 00 09 00 00 00 00 00 00 | 00 00 00 55 00 0c 00 08 |........|...U....|
|00001490| 00 03 00 9c 00 09 00 00 | 00 00 00 00 00 00 00 5a |........|.......Z|
|000014a0| 00 0c 00 08 00 03 01 9c | 00 09 00 00 00 00 00 00 |........|........|
|000014b0| 00 00 00 66 00 0c 00 08 | 00 03 00 9c 00 09 00 00 |...f....|........|
|000014c0| 00 00 00 00 00 00 00 8f | 00 0c 00 08 00 03 02 9c |........|........|
|000014d0| 00 09 00 00 00 00 00 00 | 00 00 00 95 00 0c 00 08 |........|........|
|000014e0| 00 03 00 9c 00 09 00 00 | 00 00 00 00 00 00 01 d7 |........|........|
|000014f0| 00 0c 00 08 00 03 01 9c | 00 09 00 00 00 00 00 00 |........|........|
|00001500| 00 00 01 e0 00 0c 00 08 | 00 03 00 9c 00 09 00 00 |........|........|
|00001510| 00 00 00 00 00 00 02 b4 | 00 0c 00 08 00 03 01 9c |........|........|
|00001520| 00 09 00 00 00 00 00 00 | 00 00 02 bd 00 0c 00 08 |........|........|
|00001530| 00 03 00 9c 00 09 00 00 | 00 00 00 00 00 00 04 3a |........|.......:|
|00001540| 41 73 6b 46 69 6c 65 20 | 66 75 6e 63 74 69 6f 6e |AskFile |function|
|00001550| 0d 0d 53 79 6e 74 61 78 | 0d 41 73 6b 46 69 6c 65 |..Syntax|.AskFile|
|00001560| 20 5b 74 79 70 65 2d 6c | 69 73 74 5d 20 5b 2c 20 | [type-l|ist] [, |
|00001570| 70 72 6f 6d 70 74 5d 0d | 0d 44 65 73 63 72 69 70 |prompt].|.Descrip|
|00001580| 74 69 6f 6e 0d 44 69 73 | 70 6c 61 79 73 20 61 20 |tion.Dis|plays a |
|00001590| 64 69 72 65 63 74 6f 72 | 79 20 64 69 61 6c 6f 67 |director|y dialog|
|000015a0| 20 62 6f 78 20 61 6e 64 | 20 72 65 74 75 72 6e 73 | box and| returns|
|000015b0| 20 74 68 65 20 66 75 6c | 6c 20 70 61 74 68 20 74 | the ful|l path t|
|000015c0| 6f 20 74 68 65 20 73 65 | 6c 65 63 74 65 64 20 66 |o the se|lected f|
|000015d0| 69 6c 65 20 6f 72 20 66 | 6f 6c 64 65 72 2e 20 49 |ile or f|older. I|
|000015e0| 66 20 79 6f 75 20 63 6c | 69 63 6b 20 43 61 6e 63 |f you cl|ick Canc|
|000015f0| 65 6c 20 69 6e 20 74 68 | 65 20 64 69 61 6c 6f 67 |el in th|e dialog|
|00001600| 20 62 6f 78 2c 20 41 73 | 6b 46 69 6c 65 20 72 65 | box, As|kFile re|
|00001610| 74 75 72 6e 73 20 74 68 | 65 20 65 6d 70 74 79 20 |turns th|e empty |
|00001620| 73 74 72 69 6e 67 20 28 | d2 d3 29 2e 0d 0d 54 79 |string (|..)...Ty|
|00001630| 70 65 2d 6c 69 73 74 20 | 69 73 20 61 20 6c 69 73 |pe-list |is a lis|
|00001640| 74 20 6f 66 20 66 6f 75 | 72 2d 63 68 61 72 61 63 |t of fou|r-charac|
|00001650| 74 65 72 20 66 69 6c 65 | 20 74 79 70 65 20 63 6f |ter file| type co|
|00001660| 64 65 73 2c 20 73 75 63 | 68 20 61 73 20 d2 54 45 |des, suc|h as .TE|
|00001670| 58 54 d3 2c 20 d2 50 49 | 43 54 d3 2c 20 d2 57 44 |XT., .PI|CT., .WD|
|00001680| 42 4e d3 2c 20 6f 72 20 | d2 41 50 50 4c d3 2e 20 |BN., or |.APPL.. |
|00001690| 54 6f 20 70 65 72 6d 69 | 74 20 63 68 6f 6f 73 69 |To permi|t choosi|
|000016a0| 6e 67 20 61 20 66 6f 6c | 64 65 72 2c 20 75 73 65 |ng a fol|der, use|
|000016b0| 20 74 68 65 20 70 73 65 | 75 64 6f 20 66 69 6c 65 | the pse|udo file|
|000016c0| 20 74 79 70 65 20 d2 66 | 6f 6c 64 d3 2e 20 49 66 | type .f|old.. If|
|000016d0| 20 79 6f 75 20 6f 6d 69 | 74 20 d2 66 6f 6c 64 d3 | you omi|t .fold.|
|000016e0| 2c 20 74 68 65 20 64 69 | 61 6c 6f 67 20 62 6f 78 |, the di|alog box|
|000016f0| 20 70 65 72 6d 69 74 73 | 20 74 68 65 20 73 65 6c | permits| the sel|
|00001700| 65 63 74 69 6f 6e 20 6f | 66 20 61 20 66 69 6c 65 |ection o|f a file|
|00001710| 20 6f 6e 6c 79 2c 20 6e | 6f 74 20 61 20 66 6f 6c | only, n|ot a fol|
|00001720| 64 65 72 2e 0d 0d 50 72 | 6f 6d 70 74 20 69 73 20 |der...Pr|ompt is |
|00001730| 61 6e 20 6f 70 74 69 6f | 6e 61 6c 20 6d 65 73 73 |an optio|nal mess|
|00001740| 61 67 65 20 74 6f 20 64 | 69 73 70 6c 61 79 20 69 |age to d|isplay i|
|00001750| 6e 20 74 68 65 20 64 69 | 61 6c 6f 67 20 62 6f 78 |n the di|alog box|
|00001760| 2e 20 49 66 20 70 72 6f | 6d 70 74 20 69 73 20 6f |. If pro|mpt is o|
|00001770| 6d 69 74 74 65 64 2c 20 | 74 68 65 20 64 65 66 61 |mitted, |the defa|
|00001780| 75 6c 74 20 6d 65 73 73 | 61 67 65 20 d2 53 65 6c |ult mess|age .Sel|
|00001790| 65 63 74 20 61 20 46 69 | 6c 65 2f 46 6f 6c 64 65 |ect a Fi|le/Folde|
|000017a0| 72 3a d3 20 61 70 70 65 | 61 72 73 2e 0d 0d 54 6f |r:. appe|ars...To|
|000017b0| 20 73 65 74 20 74 68 65 | 20 64 65 66 61 75 6c 74 | set the| default|
|000017c0| 20 64 69 72 65 63 74 6f | 72 79 20 74 68 61 74 20 | directo|ry that |
|000017d0| 61 70 70 65 61 72 73 20 | 69 6e 20 74 68 65 20 64 |appears |in the d|
|000017e0| 69 61 6c 6f 67 20 62 6f | 78 2c 20 73 65 74 20 74 |ialog bo|x, set t|
|000017f0| 68 65 20 44 69 72 65 63 | 74 6f 72 79 20 73 79 73 |he Direc|tory sys|
|00001800| 74 65 6d 20 76 61 72 69 | 61 62 6c 65 20 74 6f 20 |tem vari|able to |
|00001810| 74 68 65 20 64 65 73 69 | 72 65 64 20 70 61 74 68 |the desi|red path|
|00001820| 20 62 65 66 6f 72 65 20 | 63 61 6c 6c 69 6e 67 20 | before |calling |
|00001830| 41 73 6b 46 69 6c 65 2e | 0d 0d 49 6e 20 74 68 65 |AskFile.|..In the|
|00001840| 20 41 73 6b 46 69 6c 65 | 20 64 69 61 6c 6f 67 20 | AskFile| dialog |
|00001850| 62 6f 78 2c 20 63 68 65 | 63 6b 20 74 68 65 20 d2 |box, che|ck the .|
|00001860| 55 73 65 20 41 6c 69 61 | 73 20 69 6e 73 74 65 61 |Use Alia|s instea|
|00001870| 64 20 6f 66 20 6f 72 69 | 67 69 6e 61 6c d3 20 63 |d of ori|ginal. c|
|00001880| 68 65 63 6b 62 6f 78 20 | 74 6f 20 72 65 74 75 72 |heckbox |to retur|
|00001890| 6e 20 74 68 65 20 70 61 | 74 68 20 74 6f 20 61 6e |n the pa|th to an|
|000018a0| 20 61 6c 69 61 73 20 69 | 6e 73 74 65 61 64 20 6f | alias i|nstead o|
|000018b0| 66 20 74 68 65 20 70 61 | 74 68 20 74 6f 20 74 68 |f the pa|th to th|
|000018c0| 65 20 66 69 6c 65 20 6f | 72 20 66 6f 6c 64 65 72 |e file o|r folder|
|000018d0| 20 74 68 65 20 61 6c 69 | 61 73 20 72 65 66 65 72 | the ali|as refer|
|000018e0| 73 20 74 6f 2e 0d 0d 45 | 78 61 6d 70 6c 65 73 0d |s to...E|xamples.|
|000018f0| 56 61 72 69 61 62 6c 65 | 20 74 68 65 46 69 6c 65 |Variable| theFile|
|00001900| 2c 20 74 68 65 46 6f 6c | 64 65 72 0d 74 68 65 46 |, theFol|der.theF|
|00001910| 6f 6c 64 65 72 20 3d 20 | 41 73 6b 46 69 6c 65 20 |older = |AskFile |
|00001920| 22 66 6f 6c 64 22 0d 74 | 68 65 46 69 6c 65 20 3d |"fold".t|heFile =|
|00001930| 20 41 73 6b 46 69 6c 65 | 20 22 54 45 58 54 22 0d | AskFile| "TEXT".|
|00001940| 0d 53 65 65 20 41 6c 73 | 6f 0d 41 73 6b 4e 65 77 |.See Als|o.AskNew|
|00001950| 46 69 6c 65 20 66 75 6e | 63 74 69 6f 6e 2c 20 44 |File fun|ction, D|
|00001960| 69 72 65 63 74 6f 72 79 | 20 73 79 73 74 65 6d 20 |irectory| system |
|00001970| 76 61 72 69 61 62 6c 65 | 0d 0d 00 00 01 7e 00 13 |variable|.....~..|
|00001980| 00 00 00 00 00 0f 00 0a | 07 d2 00 9c 00 0c 00 00 |........|........|
|00001990| 00 00 00 00 00 00 00 12 | 00 0c 00 08 00 03 01 9c |........|........|
|000019a0| 00 09 00 00 00 00 00 00 | 00 00 00 19 00 0c 00 08 |........|........|
|000019b0| 00 03 00 9c 00 09 00 00 | 00 00 00 00 00 00 00 22 |........|......."|
|000019c0| 00 0c 00 08 00 03 02 9c | 00 09 00 00 00 00 00 00 |........|........|
|000019d0| 00 00 00 2b 00 0c 00 08 | 00 03 00 9c 00 09 00 00 |...+....|........|
|000019e0| 00 00 00 00 00 00 00 30 | 00 0c 00 08 00 03 02 9c |.......0|........|
|000019f0| 00 09 00 00 00 00 00 00 | 00 00 00 36 00 0c 00 08 |........|...6....|
|00001a00| 00 03 00 9c 00 09 00 00 | 00 00 00 00 00 00 00 39 |........|.......9|
|00001a10| 00 0c 00 08 00 03 01 9c | 00 09 00 00 00 00 00 00 |........|........|
|00001a20| 00 00 00 45 00 0c 00 08 | 00 03 00 9c 00 09 00 00 |...E....|........|
|00001a30| 00 00 00 00 00 00 00 ee | 00 0c 00 08 00 03 02 9c |........|........|
|00001a40| 00 09 00 00 00 00 00 00 | 00 00 00 f7 00 0c 00 08 |........|........|
|00001a50| 00 03 00 9c 00 09 00 00 | 00 00 00 00 00 00 01 e6 |........|........|
|00001a60| 00 0c 00 08 00 03 02 9c | 00 09 00 00 00 00 00 00 |........|........|
|00001a70| 00 00 01 ec 00 0c 00 08 | 00 03 00 9c 00 09 00 00 |........|........|
|00001a80| 00 00 00 00 00 00 02 25 | 00 0c 00 08 00 03 02 9c |.......%|........|
|00001a90| 00 09 00 00 00 00 00 00 | 00 00 02 2b 00 0c 00 08 |........|...+....|
|00001aa0| 00 03 00 9c 00 09 00 00 | 00 00 00 00 00 00 03 a7 |........|........|
|00001ab0| 00 0c 00 08 00 03 01 9c | 00 09 00 00 00 00 00 00 |........|........|
|00001ac0| 00 00 03 b0 00 0c 00 08 | 00 03 00 9c 00 09 00 00 |........|........|
|00001ad0| 00 00 00 00 00 00 04 01 | 00 0c 00 08 00 03 01 9c |........|........|
|00001ae0| 00 09 00 00 00 00 00 00 | 00 00 04 0a 00 0c 00 08 |........|........|
|00001af0| 00 03 00 9c 00 09 00 00 | 00 00 00 00 00 00 04 d5 |........|........|
|00001b00| 41 73 6b 4b 65 79 20 66 | 75 6e 63 74 69 6f 6e 0d |AskKey f|unction.|
|00001b10| 0d 53 79 6e 74 61 78 0d | 41 73 6b 4b 65 79 20 5b |.Syntax.|AskKey [|
|00001b20| 70 72 6f 6d 70 74 5d 20 | 5b 2c 20 64 65 66 61 75 |prompt] |[, defau|
|00001b30| 6c 74 2d 73 68 6f 72 74 | 63 75 74 5d 20 5b 2c 20 |lt-short|cut] [, |
|00001b40| 63 61 6e 63 65 6c 2d 76 | 61 6c 75 65 5d 0d 0d 44 |cancel-v|alue]..D|
|00001b50| 65 73 63 72 69 70 74 69 | 6f 6e 0d 50 72 6f 6d 70 |escripti|on.Promp|
|00001b60| 74 73 20 79 6f 75 20 74 | 6f 20 70 72 65 73 73 20 |ts you t|o press |
|00001b70| 61 20 6b 65 79 20 61 6e | 64 20 72 65 74 75 72 6e |a key an|d return|
|00001b80| 73 20 74 68 65 20 6b 65 | 79 73 74 72 6f 6b 65 20 |s the ke|ystroke |
|00001b90| 69 6e 20 74 65 78 74 20 | 66 6f 72 6d 61 74 2e 20 |in text |format. |
|00001ba0| 54 68 65 20 66 6f 72 6d | 61 74 20 69 73 20 74 68 |The form|at is th|
|00001bb0| 65 20 73 61 6d 65 20 61 | 73 20 74 68 61 74 20 65 |e same a|s that e|
|00001bc0| 78 70 65 63 74 65 64 20 | 62 79 20 74 68 65 20 42 |xpected |by the B|
|00001bd0| 75 74 74 6f 6e 2e 4b 65 | 79 53 68 6f 72 74 43 75 |utton.Ke|yShortCu|
|00001be0| 74 20 70 72 6f 70 65 72 | 74 79 20 28 73 65 65 20 |t proper|ty (see |
|00001bf0| 70 61 67 65 20 31 35 34 | 29 2e 20 59 6f 75 20 63 |page 154|). You c|
|00001c00| 61 6e 20 6f 70 74 69 6f | 6e 61 6c 6c 79 20 70 72 |an optio|nally pr|
|00001c10| 6f 76 69 64 65 20 61 20 | 64 65 66 61 75 6c 74 20 |ovide a |default |
|00001c20| 73 68 6f 72 74 63 75 74 | 2c 20 61 20 62 72 69 65 |shortcut|, a brie|
|00001c30| 66 20 70 72 6f 6d 70 74 | 20 6d 65 73 73 61 67 65 |f prompt| message|
|00001c40| 2c 20 61 6e 64 20 61 20 | 73 70 65 63 69 61 6c 20 |, and a |special |
|00001c50| 76 61 6c 75 65 20 74 6f | 20 72 65 74 75 72 6e 20 |value to| return |
|00001c60| 69 66 20 74 68 65 20 75 | 73 65 72 20 63 6c 69 63 |if the u|ser clic|
|00001c70| 6b 73 20 43 61 6e 63 65 | 6c 2e 0d 0d 41 73 6b 4b |ks Cance|l...AskK|
|00001c80| 65 79 20 72 65 74 75 72 | 6e 73 20 74 68 65 20 6e |ey retur|ns the n|
|00001c90| 75 6c 6c 20 73 74 72 69 | 6e 67 20 28 22 22 29 20 |ull stri|ng ("") |
|00001ca0| 69 66 20 79 6f 75 20 63 | 6c 69 63 6b 20 4e 6f 6e |if you c|lick Non|
|00001cb0| 65 20 69 6e 20 74 68 65 | 20 73 68 6f 72 74 63 75 |e in the| shortcu|
|00001cc0| 74 20 64 69 61 6c 6f 67 | 20 62 6f 78 2e 0d 0d 49 |t dialog| box...I|
|00001cd0| 66 20 79 6f 75 20 73 75 | 70 70 6c 79 20 61 20 76 |f you su|pply a v|
|00001ce0| 61 6c 75 65 20 69 6e 20 | 63 61 6e 63 65 6c 2d 76 |alue in |cancel-v|
|00001cf0| 61 6c 75 65 2c 20 61 20 | 43 61 6e 63 65 6c 20 62 |alue, a |Cancel b|
|00001d00| 75 74 74 6f 6e 20 61 70 | 70 65 61 72 73 20 69 6e |utton ap|pears in|
|00001d10| 20 61 64 64 69 74 69 6f | 6e 20 74 6f 20 74 68 65 | additio|n to the|
|00001d20| 20 4f 4b 20 61 6e 64 20 | 4e 6f 6e 65 20 62 75 74 | OK and |None but|
|00001d30| 74 6f 6e 73 20 61 6e 64 | 20 41 73 6b 4b 65 79 20 |tons and| AskKey |
|00001d40| 72 65 74 75 72 6e 73 20 | 74 68 65 20 63 61 6e 63 |returns |the canc|
|00001d50| 65 6c 2d 76 61 6c 75 65 | 20 69 66 20 79 6f 75 20 |el-value| if you |
|00001d60| 63 6c 69 63 6b 20 43 61 | 6e 63 65 6c 2e 0d 0d 45 |click Ca|ncel...E|
|00001d70| 78 61 6d 70 6c 65 0d 2f | 2f 20 50 72 6f 6d 70 74 |xample./|/ Prompt|
|00001d80| 20 74 68 65 20 75 73 65 | 72 20 74 6f 20 63 68 61 | the use|r to cha|
|00001d90| 6e 67 65 20 74 68 65 20 | 62 75 74 74 6f 6e d5 73 |nge the |button.s|
|00001da0| 20 73 68 6f 72 74 63 75 | 74 2c 20 74 68 65 6e 20 | shortcu|t, then |
|00001db0| 64 69 73 70 6c 61 79 20 | 74 68 65 20 6e 65 77 20 |display |the new |
|00001dc0| 73 68 6f 72 74 63 75 74 | 2e 0d 2f 2f 20 55 73 65 |shortcut|..// Use|
|00001dd0| 20 74 68 65 20 62 75 74 | 74 6f 6e 27 73 20 65 78 | the but|ton's ex|
|00001de0| 69 73 74 69 6e 67 20 73 | 68 6f 72 74 63 75 74 20 |isting s|hortcut |
|00001df0| 61 73 20 74 68 65 20 64 | 65 66 61 75 6c 74 20 73 |as the d|efault s|
|00001e00| 68 6f 72 74 63 75 74 2e | 0d 56 61 72 69 61 62 6c |hortcut.|.Variabl|
|00001e10| 65 20 74 68 65 4b 65 79 | 0d 74 68 65 4b 65 79 20 |e theKey|.theKey |
|00001e20| 3d 20 41 73 6b 4b 65 79 | 20 22 50 72 65 73 73 20 |= AskKey| "Press |
|00001e30| 61 20 6b 65 79 20 63 6f | 6d 62 69 6e 61 74 69 6f |a key co|mbinatio|
|00001e40| 6e 3a 22 2c 20 42 75 74 | 74 6f 6e 2e 4b 65 79 53 |n:", But|ton.KeyS|
|00001e50| 68 6f 72 74 43 75 74 2c | 20 43 68 61 72 20 30 0d |hortCut,| Char 0.|
|00001e60| 49 66 20 74 68 65 4b 65 | 79 20 3d 20 22 22 0d 20 |If theKe|y = "". |
|00001e70| 20 20 20 20 4d 65 73 73 | 61 67 65 20 22 59 6f 75 | Mess|age "You|
|00001e80| 20 63 6c 69 63 6b 65 64 | 20 4e 6f 6e 65 2e 22 0d | clicked| None.".|
|00001e90| 20 20 20 20 20 42 75 74 | 74 6f 6e 2e 4b 65 79 53 | But|ton.KeyS|
|00001ea0| 68 6f 72 74 43 75 74 20 | 3d 20 22 22 20 20 20 20 |hortCut |= "" |
|00001eb0| 20 2f 2f 20 72 65 6d 6f | 76 65 20 74 68 65 20 73 | // remo|ve the s|
|00001ec0| 68 6f 72 74 63 75 74 2c | 20 69 66 20 61 6e 79 0d |hortcut,| if any.|
|00001ed0| 45 6c 73 65 20 49 66 20 | 74 68 65 4b 65 79 20 3d |Else If |theKey =|
|00001ee0| 20 43 68 61 72 20 30 0d | 20 20 20 20 20 4d 65 73 | Char 0.| Mes|
|00001ef0| 73 61 67 65 20 22 59 6f | 75 20 63 6c 69 63 6b 65 |sage "Yo|u clicke|
|00001f00| 64 20 43 61 6e 63 65 6c | 2e 22 20 20 20 20 20 2f |d Cancel|." /|
|00001f10| 2f 20 64 6f 6e d5 74 20 | 63 68 61 6e 67 65 20 6f |/ don.t |change o|
|00001f20| 72 20 72 65 6d 6f 76 65 | 20 74 68 65 20 73 68 6f |r remove| the sho|
|00001f30| 72 74 63 75 74 0d 45 6c | 73 65 20 0d 20 20 20 20 |rtcut.El|se . |
|00001f40| 20 42 75 74 74 6f 6e 2e | 4b 65 79 53 68 6f 72 74 | Button.|KeyShort|
|00001f50| 43 75 74 20 3d 20 74 68 | 65 4b 65 79 20 20 20 20 |Cut = th|eKey |
|00001f60| 20 2f 2f 20 63 68 61 6e | 67 65 20 74 68 65 20 73 | // chan|ge the s|
|00001f70| 68 6f 72 74 63 75 74 20 | 74 6f 20 74 68 65 20 6b |hortcut |to the k|
|00001f80| 65 79 20 74 79 70 65 64 | 20 62 79 20 74 68 65 20 |ey typed| by the |
|00001f90| 75 73 65 72 0d 20 20 20 | 20 20 4d 65 73 73 61 67 |user. | Messag|
|00001fa0| 65 20 22 54 68 69 73 20 | 62 75 74 74 6f 6e 27 73 |e "This |button's|
|00001fb0| 20 73 68 6f 72 74 63 75 | 74 20 69 73 20 6e 6f 77 | shortcu|t is now|
|00001fc0| 20 22 20 26 20 74 68 65 | 4b 65 79 0d 45 6e 64 20 | " & the|Key.End |
|00001fd0| 49 66 20 0d 0d 00 00 01 | 56 00 11 00 00 00 00 00 |If .....|V.......|
|00001fe0| 0f 00 0a 07 d2 00 9c 00 | 0c 00 00 00 00 00 00 00 |........|........|
|00001ff0| 00 00 11 00 0c 00 08 00 | 03 01 9c 00 09 00 00 00 |........|........|
|00002000| 00 00 00 00 00 00 18 00 | 0c 00 08 00 03 00 9c 00 |........|........|
|00002010| 09 00 00 00 00 00 00 00 | 00 00 20 00 0c 00 08 00 |........|.. .....|
|00002020| 03 02 9c 00 09 00 00 00 | 00 00 00 00 00 00 26 00 |........|......&.|
|00002030| 0c 00 08 00 03 00 9c 00 | 09 00 00 00 00 00 00 00 |........|........|
|00002040| 00 00 2b 00 0c 00 08 00 | 03 02 9c 00 09 00 00 00 |..+.....|........|
|00002050| 00 00 00 00 00 00 3b 00 | 0c 00 08 00 03 00 9c 00 |......;.|........|
|00002060| 09 00 00 00 00 00 00 00 | 00 00 40 00 0c 00 08 00 |........|..@.....|
|00002070| 03 02 9c 00 09 00 00 00 | 00 00 00 00 00 00 4c 00 |........|......L.|
|00002080| 0c 00 08 00 03 00 9c 00 | 09 00 00 00 00 00 00 00 |........|........|
|00002090| 00 00 4f 00 0c 00 08 00 | 03 01 9c 00 09 00 00 00 |..O.....|........|
|000020a0| 00 00 00 00 00 00 5b 00 | 0c 00 08 00 03 00 9c 00 |......[.|........|
|000020b0| 09 00 00 00 00 00 00 00 | 00 01 e8 00 0c 00 08 00 |........|........|
|000020c0| 03 02 9c 00 09 00 00 00 | 00 00 00 00 00 01 f4 00 |........|........|
|000020d0| 0c 00 08 00 03 00 9c 00 | 09 00 00 00 00 00 00 00 |........|........|
|000020e0| 00 02 4c 00 0c 00 08 00 | 03 02 9c 00 09 00 00 00 |..L.....|........|
|000020f0| 00 00 00 00 00 02 58 00 | 0c 00 08 00 03 00 9c 00 |......X.|........|
|00002100| 09 00 00 00 00 00 00 00 | 00 02 6f 00 0c 00 08 00 |........|..o.....|
|00002110| 03 01 9c 00 09 00 00 00 | 00 00 00 00 00 02 77 00 |........|......w.|
|00002120| 0c 00 08 00 03 00 9c 00 | 09 00 00 00 00 00 00 00 |........|........|
|00002130| 00 03 f9 41 73 6b 4c 69 | 73 74 20 66 75 6e 63 74 |...AskLi|st funct|
|00002140| 69 6f 6e 0d 0d 53 79 6e | 74 61 78 0d 41 73 6b 4c |ion..Syn|tax.AskL|
|00002150| 69 73 74 20 69 74 65 6d | 2d 6c 69 73 74 20 5b 2c |ist item|-list [,|
|00002160| 20 70 72 6f 6d 70 74 5d | 20 5b 2c 20 73 65 6c 65 | prompt]| [, sele|
|00002170| 63 74 65 64 2d 6c 69 73 | 74 5d 0d 0d 44 65 73 63 |cted-lis|t]..Desc|
|00002180| 72 69 70 74 69 6f 6e 0d | 44 69 73 70 6c 61 79 73 |ription.|Displays|
|00002190| 20 61 20 6d 65 73 73 61 | 67 65 20 28 70 72 6f 6d | a messa|ge (prom|
|000021a0| 70 74 29 20 61 6e 64 20 | 61 20 6c 69 73 74 20 6f |pt) and |a list o|
|000021b0| 66 20 69 74 65 6d 73 20 | 28 69 74 65 6d 2d 6c 69 |f items |(item-li|
|000021c0| 73 74 29 20 69 6e 20 61 | 20 64 69 61 6c 6f 67 20 |st) in a| dialog |
|000021d0| 62 6f 78 20 61 6e 64 20 | 72 65 74 75 72 6e 73 20 |box and |returns |
|000021e0| 61 20 6c 69 73 74 20 63 | 6f 6e 74 61 69 6e 69 6e |a list c|ontainin|
|000021f0| 67 20 74 68 65 20 73 65 | 6c 65 63 74 65 64 20 69 |g the se|lected i|
|00002200| 74 65 6d 73 2e 20 49 66 | 20 79 6f 75 20 77 61 6e |tems. If| you wan|
|00002210| 74 20 6f 6e 65 20 6f 72 | 20 6d 6f 72 65 20 69 74 |t one or| more it|
|00002220| 65 6d 73 20 69 6e 20 74 | 68 65 20 6c 69 73 74 20 |ems in t|he list |
|00002230| 74 6f 20 61 70 70 65 61 | 72 20 73 65 6c 65 63 74 |to appea|r select|
|00002240| 65 64 20 62 79 20 64 65 | 66 61 75 6c 74 2c 20 69 |ed by de|fault, i|
|00002250| 6e 63 6c 75 64 65 20 74 | 68 65 20 6c 69 73 74 20 |nclude t|he list |
|00002260| 6f 66 20 73 65 6c 65 63 | 74 65 64 20 69 74 65 6d |of selec|ted item|
|00002270| 73 20 69 6e 20 73 65 6c | 65 63 74 65 64 2d 6c 69 |s in sel|ected-li|
|00002280| 73 74 2e 0d 0d 57 68 65 | 6e 20 74 68 65 20 64 69 |st...Whe|n the di|
|00002290| 61 6c 6f 67 20 62 6f 78 | 20 61 70 70 65 61 72 73 |alog box| appears|
|000022a0| 2c 20 73 65 6c 65 63 74 | 20 61 6e 20 69 74 65 6d |, select| an item|
|000022b0| 20 62 79 20 63 6c 69 63 | 6b 69 6e 67 20 69 74 2c | by clic|king it,|
|000022c0| 20 62 79 20 75 73 69 6e | 67 20 74 68 65 20 61 72 | by usin|g the ar|
|000022d0| 72 6f 77 20 6b 65 79 73 | 2c 20 6f 72 20 62 79 20 |row keys|, or by |
|000022e0| 74 79 70 69 6e 67 20 69 | 74 73 20 6e 61 6d 65 20 |typing i|ts name |
|000022f0| 28 69 66 20 74 68 65 20 | 6c 69 73 74 20 69 73 20 |(if the |list is |
|00002300| 73 6f 72 74 65 64 29 2e | 20 54 6f 20 73 65 6c 65 |sorted).| To sele|
|00002310| 63 74 20 61 20 73 69 6e | 67 6c 65 20 69 74 65 6d |ct a sin|gle item|
|00002320| 20 61 6e 64 20 63 6c 6f | 73 65 20 74 68 65 20 64 | and clo|se the d|
|00002330| 69 61 6c 6f 67 20 62 6f | 78 2c 20 64 6f 75 62 6c |ialog bo|x, doubl|
|00002340| 65 2d 63 6c 69 63 6b 20 | 74 68 65 20 69 74 65 6d |e-click |the item|
|00002350| 2e 20 0d 0d 54 6f 20 73 | 65 6c 65 63 74 20 6d 6f |. ..To s|elect mo|
|00002360| 72 65 20 74 68 61 6e 20 | 6f 6e 65 20 69 74 65 6d |re than |one item|
|00002370| 2c 20 68 6f 6c 64 20 64 | 6f 77 6e 20 74 68 65 20 |, hold d|own the |
|00002380| 43 6f 6d 6d 61 6e 64 20 | 6b 65 79 20 61 6e 64 20 |Command |key and |
|00002390| 63 6c 69 63 6b 20 61 64 | 64 69 74 69 6f 6e 61 6c |click ad|ditional|
|000023a0| 20 69 74 65 6d 73 2e 20 | 54 6f 20 73 65 6c 65 63 | items. |To selec|
|000023b0| 74 20 61 20 63 6f 6e 74 | 69 67 75 6f 75 73 20 67 |t a cont|iguous g|
|000023c0| 72 6f 75 70 20 6f 66 20 | 69 74 65 6d 73 2c 20 68 |roup of |items, h|
|000023d0| 6f 6c 64 20 64 6f 77 6e | 20 74 68 65 20 53 68 69 |old down| the Shi|
|000023e0| 66 74 20 6b 65 79 20 61 | 6e 64 20 63 6c 69 63 6b |ft key a|nd click|
|000023f0| 20 74 68 65 20 66 69 72 | 73 74 20 61 6e 64 20 6c | the fir|st and l|
|00002400| 61 73 74 20 69 74 65 6d | 73 20 69 6e 20 74 68 65 |ast item|s in the|
|00002410| 20 67 72 6f 75 70 2e 0d | 0d 45 78 61 6d 70 6c 65 | group..|.Example|
|00002420| 73 0d 56 61 72 69 61 62 | 6c 65 20 74 68 65 52 65 |s.Variab|le theRe|
|00002430| 73 70 6f 6e 73 65 0d 2f | 2f 20 53 68 6f 77 20 61 |sponse./|/ Show a|
|00002440| 20 6c 69 73 74 20 6f 66 | 20 63 6f 6c 6f 72 73 20 | list of| colors |
|00002450| 77 69 74 68 20 72 65 64 | 20 61 6e 64 20 79 65 6c |with red| and yel|
|00002460| 6c 6f 77 20 61 6c 72 65 | 61 64 79 20 73 65 6c 65 |low alre|ady sele|
|00002470| 63 74 65 64 0d 74 68 65 | 52 65 73 70 6f 6e 73 65 |cted.the|Response|
|00002480| 20 3d 20 41 73 6b 4c 69 | 73 74 20 22 72 65 64 3c | = AskLi|st "red<|
|00002490| 72 65 74 75 72 6e 3e 6f | 72 61 6e 67 65 3c 72 65 |return>o|range<re|
|000024a0| 74 75 72 6e 3e 79 65 6c | 6c 6f 77 22 2c 20 22 50 |turn>yel|low", "P|
|000024b0| 69 63 6b 20 63 6f 6c 6f | 72 73 3a 22 2c 20 22 72 |ick colo|rs:", "r|
|000024c0| 65 64 3c 72 65 74 75 72 | 6e 3e 79 65 6c 6c 6f 77 |ed<retur|n>yellow|
|000024d0| 22 0d 54 79 70 65 20 22 | 59 6f 75 20 70 69 63 6b |".Type "|You pick|
|000024e0| 65 64 3a 22 20 26 20 52 | 65 74 75 72 6e 20 26 20 |ed:" & R|eturn & |
|000024f0| 74 68 65 52 65 73 70 6f | 6e 73 65 0d 0d 53 65 65 |theRespo|nse..See|
|00002500| 20 41 6c 73 6f 0d 41 73 | 6b 54 65 78 74 20 66 75 | Also.As|kText fu|
|00002510| 6e 63 74 69 6f 6e 2c 20 | 41 73 6b 42 75 74 74 6f |nction, |AskButto|
|00002520| 6e 20 66 75 6e 63 74 69 | 6f 6e 0d 0d 00 00 01 a6 |n functi|on......|
|00002530| 00 15 00 00 00 00 00 0f | 00 0a 07 d2 00 9c 00 0c |........|........|
|00002540| 00 00 00 00 00 00 00 00 | 00 12 00 0c 00 08 00 03 |........|........|
|00002550| 01 9c 00 09 00 00 00 00 | 00 00 00 00 00 19 00 0c |........|........|
|00002560| 00 08 00 03 00 9c 00 09 | 00 00 00 00 00 00 00 00 |........|........|
|00002570| 00 21 00 0c 00 08 00 03 | 02 9c 00 09 00 00 00 00 |.!......|........|
|00002580| 00 00 00 00 00 2a 00 0c | 00 08 00 03 00 9c 00 09 |.....*..|........|
|00002590| 00 00 00 00 00 00 00 00 | 00 2e 00 0c 00 08 00 03 |........|........|
|000025a0| 02 9c 00 09 00 00 00 00 | 00 00 00 00 00 34 00 0c |........|.....4..|
|000025b0| 00 08 00 03 00 9c 00 09 | 00 00 00 00 00 00 00 00 |........|........|
|000025c0| 00 39 00 0c 00 08 00 03 | 02 9c 00 09 00 00 00 00 |.9......|........|
|000025d0| 00 00 00 00 00 46 00 0c | 00 08 00 03 00 9c 00 09 |.....F..|........|
|000025e0| 00 00 00 00 00 00 00 00 | 00 49 00 0c 00 08 00 03 |........|.I......|
|000025f0| 01 9c 00 09 00 00 00 00 | 00 00 00 00 00 55 00 0c |........|.....U..|
|00002600| 00 08 00 03 00 9c 00 09 | 00 00 00 00 00 00 00 00 |........|........|
|00002610| 00 69 00 0c 00 08 00 03 | 02 9c 00 09 00 00 00 00 |.i......|........|
|00002620| 00 00 00 00 00 6f 00 0c | 00 08 00 03 00 9c 00 09 |.....o..|........|
|00002630| 00 00 00 00 00 00 00 00 | 00 86 00 0c 00 08 00 03 |........|........|
|00002640| 02 9c 00 09 00 00 00 00 | 00 00 00 00 00 8f 00 0c |........|........|
|00002650| 00 08 00 03 00 9c 00 09 | 00 00 00 00 00 00 00 00 |........|........|
|00002660| 01 42 00 0c 00 08 00 03 | 02 9c 00 09 00 00 00 00 |.B......|........|
|00002670| 00 00 00 00 01 4f 00 0c | 00 08 00 03 00 9c 00 09 |.....O..|........|
|00002680| 00 00 00 00 00 00 00 00 | 02 e6 00 0c 00 08 00 03 |........|........|
|00002690| 01 9c 00 09 00 00 00 00 | 00 00 00 00 02 ef 00 0c |........|........|
|000026a0| 00 08 00 03 00 9c 00 09 | 00 00 00 00 00 00 00 00 |........|........|
|000026b0| 03 ca 00 0c 00 08 00 03 | 01 9c 00 09 00 00 00 00 |........|........|
|000026c0| 00 00 00 00 03 d3 00 0c | 00 08 00 03 00 9c 00 09 |........|........|
|000026d0| 00 00 00 00 00 00 00 00 | 03 73 41 73 6b 4e 65 77 |........|.sAskNew|
|000026e0| 46 69 6c 65 20 66 75 6e | 63 74 69 6f 6e 0d 0d 53 |File fun|ction..S|
|000026f0| 79 6e 74 61 78 0d 41 73 | 6b 4e 65 77 46 69 6c 65 |yntax.As|kNewFile|
|00002700| 20 5b 70 72 6f 6d 70 74 | 5d 20 5b 2c 20 64 65 66 | [prompt|] [, def|
|00002710| 61 75 6c 74 2d 6e 61 6d | 65 5d 0d 0d 44 65 73 63 |ault-nam|e]..Desc|
|00002720| 72 69 70 74 69 6f 6e 0d | 44 69 73 70 6c 61 79 73 |ription.|Displays|
|00002730| 20 61 20 73 74 61 6e 64 | 61 72 64 20 53 61 76 65 | a stand|ard Save|
|00002740| 20 41 73 20 64 69 61 6c | 6f 67 20 62 6f 78 20 66 | As dial|og box f|
|00002750| 6f 72 20 79 6f 75 20 74 | 6f 20 6c 6f 63 61 74 65 |or you t|o locate|
|00002760| 20 61 6e 64 20 6e 61 6d | 65 20 61 20 66 69 6c 65 | and nam|e a file|
|00002770| 20 61 6e 64 20 72 65 74 | 75 72 6e 73 20 74 68 65 | and ret|urns the|
|00002780| 20 66 75 6c 6c 20 70 61 | 74 68 20 74 6f 20 74 68 | full pa|th to th|
|00002790| 65 20 66 69 6c 65 2e 20 | 0d 0d 41 73 6b 4e 65 77 |e file. |..AskNew|
|000027a0| 46 69 6c 65 20 64 6f 65 | 73 20 6e 6f 74 20 61 63 |File doe|s not ac|
|000027b0| 74 75 61 6c 6c 79 20 63 | 72 65 61 74 65 20 74 68 |tually c|reate th|
|000027c0| 65 20 66 69 6c 65 2e 20 | 49 74 73 20 70 75 72 70 |e file. |Its purp|
|000027d0| 6f 73 65 20 69 73 20 74 | 6f 20 72 65 74 75 72 6e |ose is t|o return|
|000027e0| 20 61 20 66 75 6c 6c 20 | 70 61 74 68 20 74 6f 20 | a full |path to |
|000027f0| 61 20 66 69 6c 65 20 74 | 68 61 74 20 79 6f 75 72 |a file t|hat your|
|00002800| 20 73 63 72 69 70 74 20 | 6d 61 79 20 63 72 65 61 | script |may crea|
|00002810| 74 65 20 6c 61 74 65 72 | 2e 0d 0d 45 78 61 6d 70 |te later|...Examp|
|00002820| 6c 65 73 0d 2f 2f 20 44 | 69 73 70 6c 61 79 20 74 |les.// D|isplay t|
|00002830| 68 65 20 53 61 76 65 20 | 41 73 20 64 69 61 6c 6f |he Save |As dialo|
|00002840| 67 20 62 6f 78 0d 56 61 | 72 69 61 62 6c 65 20 75 |g box.Va|riable u|
|00002850| 73 65 72 50 61 74 68 0d | 75 73 65 72 50 61 74 68 |serPath.|userPath|
|00002860| 20 3d 20 41 73 6b 4e 65 | 77 46 69 6c 65 0d 0d 2f | = AskNe|wFile../|
|00002870| 2f 20 44 69 73 70 6c 61 | 79 20 74 68 65 20 53 61 |/ Displa|y the Sa|
|00002880| 76 65 20 41 73 20 64 69 | 61 6c 6f 67 20 62 6f 78 |ve As di|alog box|
|00002890| 20 77 69 74 68 20 61 20 | 70 72 6f 6d 70 74 20 61 | with a |prompt a|
|000028a0| 6e 64 20 64 65 66 61 75 | 6c 74 20 6e 61 6d 65 20 |nd defau|lt name |
|000028b0| 6f 66 20 22 43 6c 69 70 | 62 6f 61 72 64 20 53 74 |of "Clip|board St|
|000028c0| 75 66 66 22 20 0d 56 61 | 72 69 61 62 6c 65 20 75 |uff" .Va|riable u|
|000028d0| 73 65 72 50 61 74 68 0d | 75 73 65 72 50 61 74 68 |serPath.|userPath|
|000028e0| 20 3d 20 41 73 6b 4e 65 | 77 46 69 6c 65 20 22 53 | = AskNe|wFile "S|
|000028f0| 61 76 65 20 63 6c 69 70 | 62 6f 61 72 64 20 73 74 |ave clip|board st|
|00002900| 75 66 66 20 77 68 65 72 | 65 3f 22 2c 20 22 43 6c |uff wher|e?", "Cl|
|00002910| 69 70 62 6f 61 72 64 20 | 53 74 75 66 66 22 0d 2f |ipboard |Stuff"./|
|00002920| 2f 20 41 64 64 20 74 68 | 65 20 43 6c 69 70 62 6f |/ Add th|e Clipbo|
|00002930| 61 72 64 20 63 6f 6e 74 | 65 6e 74 73 20 74 6f 20 |ard cont|ents to |
|00002940| 74 68 65 20 65 6e 64 20 | 6f 66 20 74 68 65 20 66 |the end |of the f|
|00002950| 69 6c 65 20 73 70 65 63 | 69 66 69 65 64 20 62 79 |ile spec|ified by|
|00002960| 20 74 68 65 20 75 73 65 | 72 0d 43 6f 6e 76 65 72 | the use|r.Conver|
|00002970| 74 43 6c 69 70 20 0d 46 | 69 6c 65 28 75 73 65 72 |tClip .F|ile(user|
|00002980| 50 61 74 68 29 2e 41 70 | 70 65 6e 64 20 3d 20 43 |Path).Ap|pend = C|
|00002990| 6c 69 70 62 6f 61 72 64 | 20 26 20 52 65 74 75 72 |lipboard| & Retur|
|000029a0| 6e 20 26 20 52 65 74 75 | 72 6e 0d 2f 2f 20 44 69 |n & Retu|rn.// Di|
|000029b0| 73 70 6c 61 79 20 74 68 | 65 20 66 75 6c 6c 20 70 |splay th|e full p|
|000029c0| 61 74 68 20 74 6f 20 74 | 68 65 20 6e 61 6d 65 64 |ath to t|he named|
|000029d0| 20 66 69 6c 65 0d 4d 65 | 73 73 61 67 65 20 22 59 | file.Me|ssage "Y|
|000029e0| 6f 75 72 20 43 6c 69 70 | 62 6f 61 72 64 20 64 61 |our Clip|board da|
|000029f0| 74 61 20 77 61 73 20 61 | 64 64 65 64 20 74 6f 20 |ta was a|dded to |
|00002a00| 22 20 26 20 52 65 74 75 | 72 6e 20 26 20 75 73 65 |" & Retu|rn & use|
|00002a10| 72 50 61 74 68 0d 0d 53 | 65 65 20 41 6c 73 6f 0d |rPath..S|ee Also.|
|00002a20| 41 73 6b 46 69 6c 65 20 | 66 75 6e 63 74 69 6f 6e |AskFile |function|
|00002a30| 2c 20 44 69 72 65 63 74 | 6f 72 79 20 73 79 73 74 |, Direct|ory syst|
|00002a40| 65 6d 20 76 61 72 69 61 | 62 6c 65 0d 0d 00 00 01 |em varia|ble.....|
|00002a50| 06 00 0d 00 00 00 00 00 | 0f 00 0a 07 d2 00 9c 00 |........|........|
|00002a60| 0c 00 00 00 00 00 00 00 | 00 00 15 00 0c 00 08 00 |........|........|
|00002a70| 03 01 9c 00 09 00 00 00 | 00 00 00 00 00 00 1c 00 |........|........|
|00002a80| 0c 00 08 00 03 00 9c 00 | 09 00 00 00 00 00 00 00 |........|........|
|00002a90| 00 00 28 00 0c 00 08 00 | 03 02 9c 00 09 00 00 00 |..(.....|........|
|00002aa0| 00 00 00 00 00 00 2e 00 | 0c 00 08 00 03 00 9c 00 |........|........|
|00002ab0| 09 00 00 00 00 00 00 00 | 00 00 33 00 0c 00 08 00 |........|..3.....|
|00002ac0| 03 02 9c 00 09 00 00 00 | 00 00 00 00 00 00 3f 00 |........|......?.|
|00002ad0| 0c 00 08 00 03 00 9c 00 | 09 00 00 00 00 00 00 00 |........|........|
|00002ae0| 00 00 42 00 0c 00 08 00 | 03 01 9c 00 09 00 00 00 |..B.....|........|
|00002af0| 00 00 00 00 00 00 4e 00 | 0c 00 08 00 03 00 9c 00 |......N.|........|
|00002b00| 09 00 00 00 00 00 00 00 | 00 01 41 00 0c 00 08 00 |........|..A.....|
|00002b10| 03 01 9c 00 09 00 00 00 | 00 00 00 00 00 01 4a 00 |........|......J.|
|00002b20| 0c 00 08 00 03 00 9c 00 | 09 00 00 00 00 00 00 00 |........|........|
|00002b30| 00 03 3d 00 0c 00 08 00 | 03 01 9c 00 09 00 00 00 |..=.....|........|
|00002b40| 00 00 00 00 00 03 46 00 | 0c 00 08 00 03 00 9c 00 |......F.|........|
|00002b50| 09 00 00 00 00 00 00 00 | 00 04 49 41 73 6b 54 65 |........|..IAskTe|
|00002b60| 78 74 20 66 75 6e 63 74 | 69 6f 6e 0d 0d 53 79 6e |xt funct|ion..Syn|
|00002b70| 74 61 78 0d 41 73 6b 54 | 65 78 74 20 5b 70 72 6f |tax.AskT|ext [pro|
|00002b80| 6d 70 74 5d 20 5b 2c 20 | 64 65 66 61 75 6c 74 2d |mpt] [, |default-|
|00002b90| 76 61 6c 75 65 5d 20 5b | 2c 20 63 61 6e 63 65 6c |value] [|, cancel|
|00002ba0| 2d 76 61 6c 75 65 5d 0d | 0d 44 65 73 63 72 69 70 |-value].|.Descrip|
|00002bb0| 74 69 6f 6e 0d 44 69 73 | 70 6c 61 79 73 20 61 20 |tion.Dis|plays a |
|00002bc0| 64 69 61 6c 6f 67 20 62 | 6f 78 20 77 69 74 68 20 |dialog b|ox with |
|00002bd0| 61 6e 20 65 64 69 74 20 | 62 6f 78 20 61 6e 64 20 |an edit |box and |
|00002be0| 70 72 6f 6d 70 74 73 20 | 79 6f 75 20 74 6f 20 74 |prompts |you to t|
|00002bf0| 79 70 65 20 61 20 6c 69 | 6e 65 20 6f 66 20 74 65 |ype a li|ne of te|
|00002c00| 78 74 2e 20 57 68 65 6e | 20 79 6f 75 20 63 6c 69 |xt. When| you cli|
|00002c10| 63 6b 20 4f 4b 2c 20 74 | 68 65 20 66 75 6e 63 74 |ck OK, t|he funct|
|00002c20| 69 6f 6e 20 72 65 74 75 | 72 6e 73 20 74 68 65 20 |ion retu|rns the |
|00002c30| 74 79 70 65 64 20 74 65 | 78 74 2e 20 54 68 65 20 |typed te|xt. The |
|00002c40| 6f 70 74 69 6f 6e 61 6c | 20 70 72 6f 6d 70 74 20 |optional| prompt |
|00002c50| 69 73 20 74 68 65 20 70 | 72 6f 6d 70 74 20 69 6e |is the p|rompt in|
|00002c60| 20 74 68 65 20 64 69 61 | 6c 6f 67 20 62 6f 78 2e | the dia|log box.|
|00002c70| 20 54 68 65 20 73 65 63 | 6f 6e 64 20 70 61 72 61 | The sec|ond para|
|00002c80| 6d 65 74 65 72 2c 20 64 | 65 66 61 75 6c 74 2d 76 |meter, d|efault-v|
|00002c90| 61 6c 75 65 2c 20 69 73 | 20 61 6e 20 6f 70 74 69 |alue, is| an opti|
|00002ca0| 6f 6e 61 6c 20 64 65 66 | 61 75 6c 74 20 73 74 72 |onal def|ault str|
|00002cb0| 69 6e 67 20 74 68 61 74 | 20 61 70 70 65 61 72 73 |ing that| appears|
|00002cc0| 20 70 72 65 2d 65 6e 74 | 65 72 65 64 20 69 6e 20 | pre-ent|ered in |
|00002cd0| 74 68 65 20 65 64 69 74 | 20 62 6f 78 2e 20 0d 0d |the edit| box. ..|
|00002ce0| 49 66 20 79 6f 75 20 73 | 75 70 70 6c 79 20 61 20 |If you s|upply a |
|00002cf0| 76 61 6c 75 65 20 69 6e | 20 63 61 6e 63 65 6c 2d |value in| cancel-|
|00002d00| 76 61 6c 75 65 2c 20 61 | 20 43 61 6e 63 65 6c 20 |value, a| Cancel |
|00002d10| 62 75 74 74 6f 6e 20 61 | 70 70 65 61 72 73 20 69 |button a|ppears i|
|00002d20| 6e 20 61 64 64 69 74 69 | 6f 6e 20 74 6f 20 74 68 |n additi|on to th|
|00002d30| 65 20 4f 4b 20 62 75 74 | 74 6f 6e 20 61 6e 64 20 |e OK but|ton and |
|00002d40| 41 73 6b 54 65 78 74 20 | 72 65 74 75 72 6e 73 20 |AskText |returns |
|00002d50| 74 68 65 20 63 61 6e 63 | 65 6c 2d 76 61 6c 75 65 |the canc|el-value|
|00002d60| 20 69 66 20 79 6f 75 20 | 63 6c 69 63 6b 20 43 61 | if you |click Ca|
|00002d70| 6e 63 65 6c 2e 0d 0d 45 | 78 61 6d 70 6c 65 73 0d |ncel...E|xamples.|
|00002d80| 2f 2f 20 41 73 73 69 67 | 6e 73 20 77 68 61 74 65 |// Assig|ns whate|
|00002d90| 76 65 72 20 69 73 20 74 | 79 70 65 64 20 74 6f 20 |ver is t|yped to |
|00002da0| 52 65 73 75 6c 74 2e 20 | 54 68 65 20 64 69 61 6c |Result. |The dial|
|00002db0| 6f 67 20 62 6f 78 20 73 | 61 79 73 3a 20 54 79 70 |og box s|ays: Typ|
|00002dc0| 65 20 73 6f 6d 65 74 68 | 69 6e 67 0d 56 61 72 69 |e someth|ing.Vari|
|00002dd0| 61 62 6c 65 20 52 65 73 | 75 6c 74 2c 20 66 61 76 |able Res|ult, fav|
|00002de0| 6f 72 69 74 65 46 72 75 | 69 74 2c 20 74 68 65 52 |oriteFru|it, theR|
|00002df0| 65 73 70 6f 6e 73 65 0d | 52 65 73 75 6c 74 20 3d |esponse.|Result =|
|00002e00| 20 41 73 6b 54 65 78 74 | 20 22 54 79 70 65 20 73 | AskText| "Type s|
|00002e10| 6f 6d 65 74 68 69 6e 67 | 22 0d 0d 2f 2f 20 54 68 |omething|"..// Th|
|00002e20| 65 20 64 65 66 61 75 6c | 74 20 72 65 73 70 6f 6e |e defaul|t respon|
|00002e30| 73 65 20 69 73 20 42 61 | 6e 61 6e 61 0d 66 61 76 |se is Ba|nana.fav|
|00002e40| 6f 72 69 74 65 46 72 75 | 69 74 20 3d 20 41 73 6b |oriteFru|it = Ask|
|00002e50| 54 65 78 74 20 22 57 68 | 61 74 d5 73 20 79 6f 75 |Text "Wh|at.s you|
|00002e60| 72 20 66 61 76 6f 72 69 | 74 65 20 66 72 75 69 74 |r favori|te fruit|
|00002e70| 3f 22 2c 20 22 42 61 6e | 61 6e 61 22 2c 20 43 68 |?", "Ban|ana", Ch|
|00002e80| 61 72 20 30 0d 74 68 65 | 52 65 73 70 6f 6e 73 65 |ar 0.the|Response|
|00002e90| 20 3d 20 22 59 6f 75 20 | 74 79 70 65 64 20 22 20 | = "You |typed " |
|00002ea0| 26 20 52 65 73 75 6c 74 | 20 26 20 22 20 61 6e 64 |& Result| & " and|
|00002eb0| 20 22 0d 49 66 20 66 61 | 76 6f 72 69 74 65 46 72 | ".If fa|voriteFr|
|00002ec0| 75 69 74 20 3d 20 43 68 | 61 72 20 30 0d 20 20 20 |uit = Ch|ar 0. |
|00002ed0| 20 20 4d 65 73 73 61 67 | 65 20 74 68 65 52 65 73 | Messag|e theRes|
|00002ee0| 70 6f 6e 73 65 20 26 20 | 22 79 6f 75 20 63 6c 69 |ponse & |"you cli|
|00002ef0| 63 6b 65 64 20 43 61 6e | 63 65 6c 2e 22 0d 45 6c |cked Can|cel.".El|
|00002f00| 73 65 20 0d 20 20 20 20 | 20 4d 65 73 73 61 67 65 |se . | Message|
|00002f10| 20 74 68 65 52 65 73 70 | 6f 6e 73 65 20 26 20 22 | theResp|onse & "|
|00002f20| 79 6f 75 72 20 66 61 76 | 6f 72 69 74 65 20 66 72 |your fav|orite fr|
|00002f30| 75 69 74 20 69 73 20 22 | 20 26 20 66 61 76 6f 72 |uit is "| & favor|
|00002f40| 69 74 65 46 72 75 69 74 | 0d 45 6e 64 20 49 66 20 |iteFruit|.End If |
|00002f50| 0d 0d 53 65 65 20 41 6c | 73 6f 0d 4d 65 73 73 61 |..See Al|so.Messa|
|00002f60| 67 65 20 63 6f 6d 6d 61 | 6e 64 2c 20 41 73 6b 42 |ge comma|nd, AskB|
|00002f70| 75 74 74 6f 6e 20 66 75 | 6e 63 74 69 6f 6e 2c 20 |utton fu|nction, |
|00002f80| 41 73 6b 4c 69 73 74 20 | 66 75 6e 63 74 69 6f 6e |AskList |function|
|00002f90| 2c 20 41 73 6b 46 69 6c | 65 20 66 75 6e 63 74 69 |, AskFil|e functi|
|00002fa0| 6f 6e 0d 0d 00 00 01 ce | 00 17 00 00 00 00 00 0f |on......|........|
|00002fb0| 00 0a 07 d2 00 9c 00 0c | 00 00 00 00 00 00 00 00 |........|........|
|00002fc0| 00 12 00 0c 00 08 00 03 | 01 9c 00 09 00 00 00 00 |........|........|
|00002fd0| 00 00 00 00 00 19 00 0c | 00 08 00 03 00 9c 00 09 |........|........|
|00002fe0| 00 00 00 00 00 00 00 00 | 00 22 00 0c 00 08 00 03 |........|."......|
|00002ff0| 02 9c 00 09 00 00 00 00 | 00 00 00 00 00 28 00 0c |........|.....(..|
|00003000| 00 08 00 03 00 9c 00 09 | 00 00 00 00 00 00 00 00 |........|........|
|00003010| 00 2d 00 0c 00 08 00 03 | 02 9c 00 09 00 00 00 00 |.-......|........|
|00003020| 00 00 00 00 00 3a 00 0c | 00 08 00 03 00 9c 00 09 |.....:..|........|
|00003030| 00 00 00 00 00 00 00 00 | 00 3f 00 0c 00 08 00 03 |........|.?......|
|00003040| 02 9c 00 09 00 00 00 00 | 00 00 00 00 00 4b 00 0c |........|.....K..|
|00003050| 00 08 00 03 00 9c 00 09 | 00 00 00 00 00 00 00 00 |........|........|
|00003060| 00 4e 00 0c 00 08 00 03 | 01 9c 00 09 00 00 00 00 |.N......|........|
|00003070| 00 00 00 00 00 5a 00 0c | 00 08 00 03 00 9c 00 09 |.....Z..|........|
|00003080| 00 00 00 00 00 00 00 00 | 00 ee 00 0c 00 08 00 03 |........|........|
|00003090| 02 9c 00 09 00 00 00 00 | 00 00 00 00 00 f5 00 0c |........|........|
|000030a0| 00 08 00 03 00 9c 00 09 | 00 00 00 00 00 00 00 00 |........|........|
|000030b0| 01 2c 00 0c 00 08 00 03 | 02 9c 00 09 00 00 00 00 |.,......|........|
|000030c0| 00 00 00 00 01 39 00 0c | 00 08 00 03 00 9c 00 09 |.....9..|........|
|000030d0| 00 00 00 00 00 00 00 00 | 01 9e 00 0c 00 08 00 03 |........|........|
|000030e0| 02 9c 00 09 00 00 00 00 | 00 00 00 00 01 aa 00 0c |........|........|
|000030f0| 00 08 00 03 00 9c 00 09 | 00 00 00 00 00 00 00 00 |........|........|
|00003100| 01 f9 00 0c 00 08 00 03 | 02 9c 00 09 00 00 00 00 |........|........|
|00003110| 00 00 00 00 02 05 00 0c | 00 08 00 03 00 9c 00 09 |........|........|
|00003120| 00 00 00 00 00 00 00 00 | 02 1c 00 0c 00 08 00 03 |........|........|
|00003130| 01 9c 00 09 00 00 00 00 | 00 00 00 00 02 25 00 0c |........|.....%..|
|00003140| 00 08 00 03 00 9c 00 09 | 00 00 00 00 00 00 00 00 |........|........|
|00003150| 03 f7 00 0c 00 08 00 03 | 01 9c 00 09 00 00 00 00 |........|........|
|00003160| 00 00 00 00 04 00 00 0c | 00 08 00 03 00 9c 00 09 |........|........|
|00003170| 00 00 00 00 00 00 00 00 | 02 b1 41 53 52 65 73 75 |........|..ASResu|
|00003180| 6c 74 20 73 79 73 74 65 | 6d 20 76 61 72 69 61 62 |lt syste|m variab|
|00003190| 6c 65 0d 0d 44 65 73 63 | 72 69 70 74 69 6f 6e 0d |le..Desc|ription.|
|000031a0| 43 6f 6e 74 61 69 6e 73 | 20 74 68 65 20 41 70 70 |Contains| the App|
|000031b0| 6c 65 53 63 72 69 70 74 | 20 72 65 73 75 6c 74 20 |leScript| result |
|000031c0| 76 61 72 69 61 62 6c 65 | 2e 20 0d 0d 45 76 65 72 |variable|. ..Ever|
|000031d0| 79 20 74 69 6d 65 20 61 | 6e 20 41 70 70 6c 65 53 |y time a|n AppleS|
|000031e0| 63 72 69 70 74 20 73 74 | 61 74 65 6d 65 6e 74 20 |cript st|atement |
|000031f0| 69 73 20 65 78 65 63 75 | 74 65 64 2c 20 74 68 65 |is execu|ted, the|
|00003200| 20 72 65 74 75 72 6e 65 | 64 20 69 6e 66 6f 72 6d | returne|d inform|
|00003210| 61 74 69 6f 6e 20 69 73 | 20 70 75 74 20 69 6e 74 |ation is| put int|
|00003220| 6f 20 74 68 65 20 41 70 | 70 6c 65 53 63 72 69 70 |o the Ap|pleScrip|
|00003230| 74 20 76 61 72 69 61 62 | 6c 65 20 d2 72 65 73 75 |t variab|le .resu|
|00003240| 6c 74 2e d3 20 49 66 20 | 6e 6f 20 69 6e 66 6f 72 |lt.. If |no infor|
|00003250| 6d 61 74 69 6f 6e 20 69 | 73 20 72 65 74 75 72 6e |mation i|s return|
|00003260| 65 64 2c 20 74 68 65 20 | 72 65 73 75 6c 74 20 76 |ed, the |result v|
|00003270| 61 72 69 61 62 6c 65 20 | 69 73 20 73 65 74 20 74 |ariable |is set t|
|00003280| 6f 20 65 6d 70 74 79 2e | 20 54 68 65 20 41 53 52 |o empty.| The ASR|
|00003290| 65 73 75 6c 74 20 73 79 | 73 74 65 6d 20 76 61 72 |esult sy|stem var|
|000032a0| 69 61 62 6c 65 20 6c 65 | 74 73 20 79 6f 75 20 72 |iable le|ts you r|
|000032b0| 65 74 72 69 65 76 65 20 | 74 68 65 20 76 61 6c 75 |etrieve |the valu|
|000032c0| 65 20 6f 66 20 41 70 70 | 6c 65 53 63 72 69 70 74 |e of App|leScript|
|000032d0| d5 73 20 72 65 73 75 6c | 74 20 76 61 72 69 61 62 |.s resul|t variab|
|000032e0| 6c 65 2e 0d 0d 45 78 61 | 6d 70 6c 65 73 0d 2f 2f |le...Exa|mples.//|
|000032f0| 20 44 69 73 70 6c 61 79 | 20 61 20 6d 65 73 73 61 | Display| a messa|
|00003300| 67 65 20 62 6f 78 20 73 | 68 6f 77 69 6e 67 20 74 |ge box s|howing t|
|00003310| 68 65 20 6e 61 6d 65 20 | 6f 66 20 53 63 72 69 70 |he name |of Scrip|
|00003320| 74 61 62 6c 65 20 54 65 | 78 74 20 45 64 69 74 6f |table Te|xt Edito|
|00003330| 72 d5 73 20 66 72 6f 6e | 74 20 77 69 6e 64 6f 77 |r.s fron|t window|
|00003340| 0d 41 70 70 6c 65 53 63 | 72 69 70 74 0d 20 20 20 |.AppleSc|ript. |
|00003350| 20 20 2d 2d 20 70 75 74 | 73 20 74 68 65 20 77 69 | -- put|s the wi|
|00003360| 6e 64 6f 77 20 6e 61 6d | 65 20 69 6e 20 72 65 73 |ndow nam|e in res|
|00003370| 75 6c 74 0d 20 20 20 20 | 20 67 65 74 20 74 68 65 |ult. | get the|
|00003380| 20 6e 61 6d 65 20 6f 66 | 20 77 69 6e 64 6f 77 20 | name of| window |
|00003390| 31 20 6f 66 20 61 70 70 | 6c 69 63 61 74 69 6f 6e |1 of app|lication|
|000033a0| 20 22 53 63 72 69 70 74 | 61 62 6c 65 20 54 65 78 | "Script|able Tex|
|000033b0| 74 20 45 64 69 74 6f 72 | 22 0d 45 6e 64 20 41 70 |t Editor|".End Ap|
|000033c0| 70 6c 65 53 63 72 69 70 | 74 0d 4d 65 73 73 61 67 |pleScrip|t.Messag|
|000033d0| 65 20 41 53 52 65 73 75 | 6c 74 0d 0d 53 65 65 20 |e ASResu|lt..See |
|000033e0| 41 6c 73 6f 0d 49 6e 74 | 65 67 72 61 74 69 6e 67 |Also.Int|egrating|
|000033f0| 20 4f 6e 65 43 6c 69 63 | 6b 20 61 6e 64 20 41 70 | OneClic|k and Ap|
|00003400| 70 6c 65 53 63 72 69 70 | 74 20 28 70 61 67 65 20 |pleScrip|t (page |
|00003410| 33 32 30 29 2c 20 41 70 | 70 6c 65 53 63 72 69 70 |320), Ap|pleScrip|
|00003420| 74 20 63 6f 6d 6d 61 6e | 64 0d 0d 00 00 00 8e 00 |t comman|d.......|
|00003430| 07 00 00 00 00 00 0f 00 | 0a 07 d2 00 9c 00 0c 00 |........|........|
|00003440| 00 00 00 00 00 00 00 00 | 1a 00 0c 00 08 00 03 01 |........|........|
|00003450| 9c 00 09 00 00 00 00 00 | 00 00 00 00 26 00 0c 00 |........|....&...|
|00003460| 08 00 03 00 9c 00 09 00 | 00 00 00 00 00 00 00 01 |........|........|
|00003470| 6b 00 0c 00 08 00 03 01 | 9c 00 09 00 00 00 00 00 |k.......|........|
|00003480| 00 00 00 01 74 00 0c 00 | 08 00 03 00 9c 00 09 00 |....t...|........|
|00003490| 00 00 00 00 00 00 00 02 | 62 00 0c 00 08 00 03 01 |........|b.......|
|000034a0| 9c 00 09 00 00 00 00 00 | 00 00 00 02 6b 00 0c 00 |........|....k...|
|000034b0| 08 00 03 00 9c 00 09 00 | 00 00 00 00 00 00 00 00 |........|........|
|000034c0| a4 42 65 65 70 20 63 6f | 6d 6d 61 6e 64 0d 0d 53 |.Beep co|mmand..S|
|000034d0| 79 6e 74 61 78 0d 42 65 | 65 70 0d 0d 44 65 73 63 |yntax.Be|ep..Desc|
|000034e0| 72 69 70 74 69 6f 6e 0d | 50 6c 61 79 73 20 74 68 |ription.|Plays th|
|000034f0| 65 20 73 79 73 74 65 6d | 20 61 6c 65 72 74 20 73 |e system| alert s|
|00003500| 6f 75 6e 64 2e 0d 0d 45 | 78 61 6d 70 6c 65 73 0d |ound...E|xamples.|
|00003510| 42 65 65 70 0d 0d 53 65 | 65 20 41 6c 73 6f 0d 42 |Beep..Se|e Also.B|
|00003520| 65 65 70 4c 65 76 65 6c | 20 73 79 73 74 65 6d 20 |eepLevel| system |
|00003530| 76 61 72 69 61 62 6c 65 | 2c 20 53 6f 75 6e 64 20 |variable|, Sound |
|00003540| 63 6f 6d 6d 61 6e 64 2c | 20 53 6f 75 6e 64 4c 65 |command,| SoundLe|
|00003550| 76 65 6c 20 73 79 73 74 | 65 6d 20 76 61 72 69 61 |vel syst|em varia|
|00003560| 62 6c 65 0d 0d 00 00 00 | b6 00 09 00 00 00 00 00 |ble.....|........|
|00003570| 0f 00 0a 07 d2 00 9c 00 | 0c 00 00 00 00 00 00 00 |........|........|
|00003580| 00 00 0e 00 0c 00 08 00 | 03 01 9c 00 09 00 00 00 |........|........|
|00003590| 00 00 00 00 00 00 15 00 | 0c 00 08 00 03 00 9c 00 |........|........|
|000035a0| 09 00 00 00 00 00 00 00 | 00 00 1b 00 0c 00 08 00 |........|........|
|000035b0| 03 01 9c 00 09 00 00 00 | 00 00 00 00 00 00 27 00 |........|......'.|
|000035c0| 0c 00 08 00 03 00 9c 00 | 09 00 00 00 00 00 00 00 |........|........|
|000035d0| 00 00 46 00 0c 00 08 00 | 03 01 9c 00 09 00 00 00 |..F.....|........|
|000035e0| 00 00 00 00 00 00 4f 00 | 0c 00 08 00 03 00 9c 00 |......O.|........|
|000035f0| 09 00 00 00 00 00 00 00 | 00 00 55 00 0c 00 08 00 |........|..U.....|
|00003600| 03 01 9c 00 09 00 00 00 | 00 00 00 00 00 00 5e 00 |........|......^.|
|00003610| 0c 00 08 00 03 00 9c 00 | 09 00 00 00 00 00 00 00 |........|........|
|00003620| 00 02 87 42 65 65 70 4c | 65 76 65 6c 20 73 79 73 |...BeepL|evel sys|
|00003630| 74 65 6d 20 76 61 72 69 | 61 62 6c 65 0d 0d 44 65 |tem vari|able..De|
|00003640| 73 63 72 69 70 74 69 6f | 6e 0d 52 65 74 75 72 6e |scriptio|n.Return|
|00003650| 73 20 74 68 65 20 63 75 | 72 72 65 6e 74 20 61 6c |s the cu|rrent al|
|00003660| 65 72 74 20 73 6f 75 6e | 64 20 76 6f 6c 75 6d 65 |ert soun|d volume|
|00003670| 2c 20 6f 72 20 73 65 74 | 73 20 74 68 65 20 61 6c |, or set|s the al|
|00003680| 65 72 74 20 76 6f 6c 75 | 6d 65 20 74 6f 20 61 20 |ert volu|me to a |
|00003690| 6e 65 77 20 76 61 6c 75 | 65 2e 20 43 68 61 6e 67 |new valu|e. Chang|
|000036a0| 69 6e 67 20 74 68 65 20 | 42 65 65 70 4c 65 76 65 |ing the |BeepLeve|
|000036b0| 6c 20 76 6f 6c 75 6d 65 | 20 61 66 66 65 63 74 73 |l volume| affects|
|000036c0| 20 6f 6e 6c 79 20 74 68 | 65 20 64 65 66 61 75 6c | only th|e defaul|
|000036d0| 74 20 62 65 65 70 20 73 | 6f 75 6e 64 2c 20 6e 6f |t beep s|ound, no|
|000036e0| 74 20 74 68 65 20 76 6f | 6c 75 6d 65 20 6f 66 20 |t the vo|lume of |
|000036f0| 6f 74 68 65 72 20 73 79 | 73 74 65 6d 20 73 6f 75 |other sy|stem sou|
|00003700| 6e 64 73 2e 20 49 74 d5 | 73 20 74 68 65 20 73 61 |nds. It.|s the sa|
|00003710| 6d 65 20 61 73 20 61 64 | 6a 75 73 74 69 6e 67 20 |me as ad|justing |
|00003720| 74 68 65 20 53 79 73 74 | 65 6d 20 41 6c 65 72 74 |the Syst|em Alert|
|00003730| 20 56 6f 6c 75 6d 65 20 | 6f 6e 20 74 68 65 20 41 | Volume |on the A|
|00003740| 6c 65 72 74 73 20 70 61 | 6e 65 6c 20 6f 66 20 74 |lerts pa|nel of t|
|00003750| 68 65 20 4d 6f 6e 69 74 | 6f 72 73 20 26 20 53 6f |he Monit|ors & So|
|00003760| 75 6e 64 20 63 6f 6e 74 | 72 6f 6c 20 70 61 6e 65 |und cont|rol pane|
|00003770| 6c 2e 0d 0d 54 68 65 20 | 61 6c 65 72 74 20 73 6f |l...The |alert so|
|00003780| 75 6e 64 20 6c 65 76 65 | 6c 20 63 61 6e 20 62 65 |und leve|l can be|
|00003790| 20 7a 65 72 6f 20 28 6e | 6f 20 73 6f 75 6e 64 29 | zero (n|o sound)|
|000037a0| 20 74 6f 20 37 20 28 68 | 69 67 68 65 73 74 20 73 | to 7 (h|ighest s|
|000037b0| 6f 75 6e 64 20 6c 65 76 | 65 6c 29 2e 0d 0d 45 78 |ound lev|el)...Ex|
|000037c0| 61 6d 70 6c 65 73 0d 2f | 2f 20 49 66 20 74 68 65 |amples./|/ If the|
|000037d0| 20 4f 70 74 69 6f 6e 20 | 6b 65 79 20 69 73 20 68 | Option |key is h|
|000037e0| 65 6c 64 20 64 6f 77 6e | 2c 20 74 75 72 6e 20 6f |eld down|, turn o|
|000037f0| 66 66 20 74 68 65 20 61 | 6c 65 72 74 20 73 6f 75 |ff the a|lert sou|
|00003800| 6e 64 2c 20 6f 74 68 65 | 72 77 69 73 65 20 73 65 |nd, othe|rwise se|
|00003810| 74 20 74 68 65 20 76 6f | 6c 75 6d 65 20 74 6f 20 |t the vo|lume to |
|00003820| 33 2e 0d 49 66 20 4f 70 | 74 69 6f 6e 4b 65 79 0d |3..If Op|tionKey.|
|00003830| 20 20 20 20 20 42 65 65 | 70 4c 65 76 65 6c 20 3d | Bee|pLevel =|
|00003840| 20 30 0d 45 6c 73 65 0d | 20 20 20 20 20 42 65 65 | 0.Else.| Bee|
|00003850| 70 4c 65 76 65 6c 20 3d | 20 33 0d 45 6e 64 20 49 |pLevel =| 3.End I|
|00003860| 66 0d 42 65 65 70 0d 0d | 53 65 65 20 41 6c 73 6f |f.Beep..|See Also|
|00003870| 0d 53 6f 75 6e 64 4c 65 | 76 65 6c 20 73 79 73 74 |.SoundLe|vel syst|
|00003880| 65 6d 20 76 61 72 69 61 | 62 6c 65 2c 20 42 65 65 |em varia|ble, Bee|
|00003890| 70 20 63 6f 6d 6d 61 6e | 64 2c 20 53 6f 75 6e 64 |p comman|d, Sound|
|000038a0| 20 63 6f 6d 6d 61 6e 64 | 0d 0d 00 00 00 8e 00 07 | command|........|
|000038b0| 00 00 00 00 00 0f 00 0a | 07 d2 00 9c 00 0c 00 00 |........|........|
|000038c0| 00 00 00 00 00 00 00 1b | 00 0c 00 08 00 03 01 9c |........|........|
|000038d0| 00 09 00 00 00 00 00 00 | 00 00 00 27 00 0c 00 08 |........|...'....|
|000038e0| 00 03 00 9c 00 09 00 00 | 00 00 00 00 00 00 01 9b |........|........|
|000038f0| 00 0c 00 08 00 03 01 9c | 00 09 00 00 00 00 00 00 |........|........|
|00003900| 00 00 01 a4 00 0c 00 08 | 00 03 00 9c 00 09 00 00 |........|........|
|00003910| 00 00 00 00 00 00 02 45 | 00 0c 00 08 00 03 01 9c |.......E|........|
|00003920| 00 09 00 00 00 00 00 00 | 00 00 02 4e 00 0c 00 08 |........|...N....|
|00003930| 00 03 00 9c 00 09 00 00 | 00 00 00 00 00 00 4d 30 |........|......M0|
|00003940| 42 75 74 74 6f 6e 20 6f | 62 6a 65 63 74 0d 0d 44 |Button o|bject..D|
|00003950| 65 73 63 72 69 70 74 69 | 6f 6e 0d 41 20 42 75 74 |escripti|on.A But|
|00003960| 74 6f 6e 20 6f 62 6a 65 | 63 74 20 69 73 20 61 20 |ton obje|ct is a |
|00003970| 62 75 74 74 6f 6e 20 6f | 6e 20 61 20 4f 6e 65 43 |button o|n a OneC|
|00003980| 6c 69 63 6b 20 70 61 6c | 65 74 74 65 2e 20 54 68 |lick pal|ette. Th|
|00003990| 65 20 42 75 74 74 6f 6e | 20 70 72 6f 70 65 72 74 |e Button| propert|
|000039a0| 69 65 73 20 6c 65 74 20 | 79 6f 75 20 61 63 63 65 |ies let |you acce|
|000039b0| 73 73 20 6f 72 20 63 68 | 61 6e 67 65 20 6e 65 61 |ss or ch|ange nea|
|000039c0| 72 6c 79 20 61 6c 6c 20 | 74 68 65 20 70 72 6f 70 |rly all |the prop|
|000039d0| 65 72 74 69 65 73 20 6f | 66 20 61 20 62 75 74 74 |erties o|f a butt|
|000039e0| 6f 6e 20 74 68 61 74 20 | 79 6f 75 20 6e 6f 72 6d |on that |you norm|
|000039f0| 61 6c 6c 79 20 73 65 74 | 20 69 6e 20 74 68 65 20 |ally set| in the |
|00003a00| 42 75 74 74 6f 6e 20 45 | 64 69 74 6f 72 2e 20 59 |Button E|ditor. Y|
|00003a10| 6f 75 20 63 61 6e 20 61 | 6c 73 6f 20 61 63 63 65 |ou can a|lso acce|
|00003a20| 73 73 20 6f 72 20 63 68 | 61 6e 67 65 20 61 20 62 |ss or ch|ange a b|
|00003a30| 75 74 74 6f 6e d5 73 20 | 73 63 72 69 70 74 20 75 |utton.s |script u|
|00003a40| 73 69 6e 67 20 74 68 65 | 20 2e 53 63 72 69 70 74 |sing the| .Script|
|00003a50| 20 70 72 6f 70 65 72 74 | 79 2c 20 61 6e 64 20 79 | propert|y, and y|
|00003a60| 6f 75 20 63 61 6e 20 63 | 72 65 61 74 65 20 61 6e |ou can c|reate an|
|00003a70| 64 20 64 65 6c 65 74 65 | 20 62 75 74 74 6f 6e 73 |d delete| buttons|
|00003a80| 20 75 73 69 6e 67 20 74 | 68 65 20 2e 4e 65 77 20 | using t|he .New |
|00003a90| 61 6e 64 20 2e 44 65 6c | 65 74 65 20 6d 65 73 73 |and .Del|ete mess|
|00003aa0| 61 67 65 73 2e 0d 0d 59 | 6f 75 20 63 61 6e 20 73 |ages...Y|ou can s|
|00003ab0| 70 65 63 69 66 79 20 61 | 20 62 75 74 74 6f 6e 20 |pecify a| button |
|00003ac0| 65 69 74 68 65 72 20 62 | 79 20 6e 61 6d 65 20 6f |either b|y name o|
|00003ad0| 72 20 62 79 20 6e 75 6d | 62 65 72 2e 20 53 70 65 |r by num|ber. Spe|
|00003ae0| 63 69 66 79 69 6e 67 20 | 62 79 20 6e 61 6d 65 20 |cifying |by name |
|00003af0| 6c 65 74 73 20 79 6f 75 | 20 70 65 72 66 6f 72 6d |lets you| perform|
|00003b00| 20 61 6e 20 6f 70 65 72 | 61 74 69 6f 6e 20 6f 6e | an oper|ation on|
|00003b10| 20 61 20 73 70 65 63 69 | 66 69 63 20 62 75 74 74 | a speci|fic butt|
|00003b20| 6f 6e 20 74 68 61 74 20 | 79 6f 75 20 61 6c 72 65 |on that |you alre|
|00003b30| 61 64 79 20 6b 6e 6f 77 | 20 74 68 65 20 6e 61 6d |ady know| the nam|
|00003b40| 65 20 6f 66 2e 20 53 70 | 65 63 69 66 79 69 6e 67 |e of. Sp|ecifying|
|00003b50| 20 62 79 20 6e 75 6d 62 | 65 72 20 6c 65 74 73 20 | by numb|er lets |
|00003b60| 79 6f 75 20 6c 6f 6f 70 | 20 74 68 72 6f 75 67 68 |you loop| through|
|00003b70| 20 61 6c 6c 20 74 68 65 | 20 62 75 74 74 6f 6e 73 | all the| buttons|
|00003b80| 20 6f 6e 20 61 20 70 61 | 6c 65 74 74 65 20 61 6e | on a pa|lette an|
|00003b90| 64 20 70 65 72 66 6f 72 | 6d 20 6f 70 65 72 61 74 |d perfor|m operat|
|00003ba0| 69 6f 6e 73 20 6f 6e 20 | 65 61 63 68 20 6f 66 20 |ions on |each of |
|00003bb0| 74 68 65 6d 20 69 6e 20 | 73 65 71 75 65 6e 63 65 |them in |sequence|
|00003bc0| 2e 20 42 75 74 74 6f 6e | 73 20 61 72 65 20 6e 75 |. Button|s are nu|
|00003bd0| 6d 62 65 72 65 64 20 31 | 20 74 6f 20 4e 2c 20 77 |mbered 1| to N, w|
|00003be0| 68 65 72 65 20 4e 20 69 | 73 20 74 68 65 20 74 6f |here N i|s the to|
|00003bf0| 74 61 6c 20 6e 75 6d 62 | 65 72 20 6f 66 20 62 75 |tal numb|er of bu|
|00003c00| 74 74 6f 6e 73 20 6f 6e | 20 74 68 65 20 70 61 6c |ttons on| the pal|
|00003c10| 65 74 74 65 2e 20 54 68 | 65 20 6e 75 6d 62 65 72 |ette. Th|e number|
|00003c20| 69 6e 67 20 73 65 71 75 | 65 6e 63 65 20 69 73 20 |ing sequ|ence is |
|00003c30| 74 68 65 20 73 61 6d 65 | 20 61 73 20 74 68 65 20 |the same| as the |
|00003c40| 63 72 65 61 74 69 6f 6e | 20 6f 72 64 65 72 20 6f |creation| order o|
|00003c50| 66 20 74 68 65 20 62 75 | 74 74 6f 6e 73 20 28 31 |f the bu|ttons (1|
|00003c60| 20 62 65 69 6e 67 20 74 | 68 65 20 6f 6c 64 65 73 | being t|he oldes|
|00003c70| 74 2c 20 4e 20 62 65 69 | 6e 67 20 74 68 65 20 6e |t, N bei|ng the n|
|00003c80| 65 77 65 73 74 29 2e 0d | 0d 42 75 74 74 6f 6e 28 |ewest)..|.Button(|
|00003c90| d0 31 29 20 72 65 66 65 | 72 73 20 74 6f 20 74 68 |.1) refe|rs to th|
|00003ca0| 65 20 62 75 74 74 6f 6e | 20 63 75 72 72 65 6e 74 |e button| current|
|00003cb0| 6c 79 20 75 6e 64 65 72 | 20 74 68 65 20 63 75 72 |ly under| the cur|
|00003cc0| 73 6f 72 2e 20 41 20 73 | 63 68 65 64 75 6c 65 64 |sor. A s|cheduled|
|00003cd0| 20 73 63 72 69 70 74 20 | 63 6f 75 6c 64 20 63 68 | script |could ch|
|00003ce0| 65 63 6b 20 74 6f 20 73 | 65 65 20 77 68 69 63 68 |eck to s|ee which|
|00003cf0| 20 62 75 74 74 6f 6e 20 | 69 73 20 75 6e 64 65 72 | button |is under|
|00003d00| 20 74 68 65 20 63 75 72 | 73 6f 72 2c 20 69 66 20 | the cur|sor, if |
|00003d10| 61 6e 79 2c 20 61 6e 64 | 20 70 65 72 66 6f 72 6d |any, and| perform|
|00003d20| 20 73 6f 6d 65 20 61 63 | 74 69 6f 6e 20 28 73 75 | some ac|tion (su|
|00003d30| 63 68 20 61 73 20 64 69 | 73 70 6c 61 79 20 61 20 |ch as di|splay a |
|00003d40| 68 65 6c 70 20 6d 65 73 | 73 61 67 65 29 20 66 6f |help mes|sage) fo|
|00003d50| 72 20 74 68 65 20 62 75 | 74 74 6f 6e 20 79 6f 75 |r the bu|tton you|
|00003d60| d5 72 65 20 70 6f 69 6e | 74 69 6e 67 20 74 6f 2e |.re poin|ting to.|
|00003d70| 0d 0d 49 66 20 79 6f 75 | 20 6f 6d 69 74 20 74 68 |..If you| omit th|
|00003d80| 65 20 73 70 65 63 69 66 | 69 65 72 20 70 61 72 74 |e specif|ier part|
|00003d90| 20 6f 66 20 74 68 65 20 | 42 75 74 74 6f 6e 20 6f | of the |Button o|
|00003da0| 62 6a 65 63 74 2c 20 74 | 68 65 6e 20 74 68 65 20 |bject, t|hen the |
|00003db0| 6f 62 6a 65 63 74 20 69 | 73 20 61 73 73 75 6d 65 |object i|s assume|
|00003dc0| 64 20 74 6f 20 62 65 20 | 74 68 65 20 62 75 74 74 |d to be |the butt|
|00003dd0| 6f 6e 20 74 68 61 74 20 | 77 61 73 20 63 6c 69 63 |on that |was clic|
|00003de0| 6b 65 64 20 28 74 68 65 | 20 62 75 74 74 6f 6e 20 |ked (the| button |
|00003df0| 63 6f 6e 74 61 69 6e 69 | 6e 67 20 74 68 65 20 72 |containi|ng the r|
|00003e00| 75 6e 6e 69 6e 67 20 73 | 63 72 69 70 74 29 2e 20 |unning s|cript). |
|00003e10| 41 6c 73 6f 2c 20 4f 6e | 65 43 6c 69 63 6b 20 61 |Also, On|eClick a|
|00003e20| 73 73 75 6d 65 73 20 74 | 68 65 20 73 70 65 63 69 |ssumes t|he speci|
|00003e30| 66 69 65 64 20 62 75 74 | 74 6f 6e 20 69 73 20 6f |fied but|ton is o|
|00003e40| 6e 20 74 68 65 20 73 61 | 6d 65 20 70 61 6c 65 74 |n the sa|me palet|
|00003e50| 74 65 20 61 73 20 74 68 | 65 20 62 75 74 74 6f 6e |te as th|e button|
|00003e60| 20 63 6f 6e 74 61 69 6e | 69 6e 67 20 74 68 65 20 | contain|ing the |
|00003e70| 72 75 6e 6e 69 6e 67 20 | 73 63 72 69 70 74 2e 20 |running |script. |
|00003e80| 54 6f 20 73 70 65 63 69 | 66 79 20 61 20 62 75 74 |To speci|fy a but|
|00003e90| 74 6f 6e 20 6f 6e 20 61 | 20 64 69 66 66 65 72 65 |ton on a| differe|
|00003ea0| 6e 74 20 70 61 6c 65 74 | 74 65 2c 20 73 70 65 63 |nt palet|te, spec|
|00003eb0| 69 66 79 20 61 20 70 61 | 6c 65 74 74 65 20 6f 62 |ify a pa|lette ob|
|00003ec0| 6a 65 63 74 20 75 73 69 | 6e 67 20 74 68 69 73 20 |ject usi|ng this |
|00003ed0| 66 6f 72 6d 61 74 3a 0d | 0d 50 61 6c 65 74 74 65 |format:.|.Palette|
|00003ee0| 28 70 61 6c 65 74 74 65 | 2d 73 70 65 63 69 66 69 |(palette|-specifi|
|00003ef0| 65 72 29 2e 42 75 74 74 | 6f 6e 28 62 75 74 74 6f |er).Butt|on(butto|
|00003f00| 6e 2d 73 70 65 63 69 66 | 69 65 72 29 2e 50 72 6f |n-specif|ier).Pro|
|00003f10| 70 65 72 74 79 0d 0d 2e | 42 6f 72 64 65 72 0d 47 |perty...|Border.G|
|00003f20| 65 74 73 20 6f 72 20 73 | 65 74 73 20 74 68 65 20 |ets or s|ets the |
|00003f30| 62 75 74 74 6f 6e d5 73 | 20 62 6f 72 64 65 72 20 |button.s| border |
|00003f40| 73 74 79 6c 65 2e 20 54 | 68 65 72 65 20 61 72 65 |style. T|here are|
|00003f50| 20 31 32 20 62 6f 72 64 | 65 72 20 73 74 79 6c 65 | 12 bord|er style|
|00003f60| 73 20 6e 75 6d 62 65 72 | 65 64 20 30 20 74 68 72 |s number|ed 0 thr|
|00003f70| 6f 75 67 68 20 31 31 20 | 77 68 69 63 68 20 63 6f |ough 11 |which co|
|00003f80| 72 72 65 73 70 6f 6e 64 | 20 74 6f 20 74 68 65 20 |rrespond| to the |
|00003f90| 63 68 6f 69 63 65 73 20 | 69 6e 20 74 68 65 20 42 |choices |in the B|
|00003fa0| 6f 72 64 65 72 20 70 6f | 70 2d 75 70 20 6d 65 6e |order po|p-up men|
|00003fb0| 75 2e 20 46 6f 72 20 61 | 20 64 69 61 67 72 61 6d |u. For a| diagram|
|00003fc0| 20 6f 66 20 74 68 65 20 | 62 75 74 74 6f 6e 20 73 | of the |button s|
|00003fd0| 74 79 6c 65 73 20 61 6e | 64 20 74 68 65 69 72 20 |tyles an|d their |
|00003fe0| 63 6f 72 72 65 73 70 6f | 6e 64 69 6e 67 20 73 79 |correspo|nding sy|
|00003ff0| 6c 65 20 6e 75 6d 62 65 | 72 73 2c 20 73 65 65 20 |le numbe|rs, see |
|00004000| 2e 42 6f 72 64 65 72 20 | 6f 6e 20 70 61 67 65 20 |.Border |on page |
|00004010| 31 35 30 20 69 6e 20 74 | 68 65 20 4f 6e 65 43 6c |150 in t|he OneCl|
|00004020| 69 63 6b 20 41 75 74 68 | 6f 72 69 6e 67 20 47 75 |ick Auth|oring Gu|
|00004030| 69 64 65 2e 0d 0d 53 65 | 74 74 69 6e 67 20 74 68 |ide...Se|tting th|
|00004040| 65 20 2e 42 6f 72 64 65 | 72 20 76 61 6c 75 65 20 |e .Borde|r value |
|00004050| 74 6f 20 33 20 72 65 6d | 6f 76 65 73 20 74 68 65 |to 3 rem|oves the|
|00004060| 20 62 6f 72 64 65 72 2e | 20 54 6f 20 6d 61 6b 65 | border.| To make|
|00004070| 20 74 68 65 20 62 75 74 | 74 6f 6e 20 61 70 70 65 | the but|ton appe|
|00004080| 61 72 20 77 69 74 68 6f | 75 74 20 61 20 66 61 63 |ar witho|ut a fac|
|00004090| 65 20 6f 72 20 62 6f 72 | 64 65 72 20 28 73 6f 20 |e or bor|der (so |
|000040a0| 6f 6e 6c 79 20 74 68 65 | 20 69 63 6f 6e 20 6f 72 |only the| icon or|
|000040b0| 20 74 65 78 74 20 61 70 | 70 65 61 72 73 2c 20 6f | text ap|pears, o|
|000040c0| 72 20 74 6f 20 63 72 65 | 61 74 65 20 61 20 74 72 |r to cre|ate a tr|
|000040d0| 61 6e 73 70 61 72 65 6e | 74 20 68 6f 74 73 70 6f |ansparen|t hotspo|
|000040e0| 74 20 6f 6e 20 61 20 70 | 61 6c 65 74 74 65 29 2c |t on a p|alette),|
|000040f0| 20 73 65 74 20 2e 42 6f | 72 64 65 72 20 74 6f 20 | set .Bo|rder to |
|00004100| 33 20 61 6e 64 20 2e 43 | 6f 6c 6f 72 20 74 6f 20 |3 and .C|olor to |
|00004110| 30 2e 0d 0d 2e 43 6f 6c | 6f 72 0d 47 65 74 73 20 |0....Col|or.Gets |
|00004120| 6f 72 20 73 65 74 73 20 | 74 68 65 20 62 75 74 74 |or sets |the butt|
|00004130| 6f 6e d5 73 20 63 6f 6c | 6f 72 2e 20 43 6f 6c 6f |on.s col|or. Colo|
|00004140| 72 73 20 61 72 65 20 6e | 75 6d 62 65 72 65 64 20 |rs are n|umbered |
|00004150| 31 d0 32 35 36 2e 20 54 | 6f 20 64 65 74 65 72 6d |1.256. T|o determ|
|00004160| 69 6e 65 20 61 20 63 6f | 6c 6f 72 d5 73 20 6e 75 |ine a co|lor.s nu|
|00004170| 6d 62 65 72 2c 20 64 72 | 61 67 20 74 68 65 20 6d |mber, dr|ag the m|
|00004180| 6f 75 73 65 20 6f 76 65 | 72 20 61 20 63 6f 6c 6f |ouse ove|r a colo|
|00004190| 72 20 69 6e 20 61 20 43 | 6f 6c 6f 72 20 70 6f 70 |r in a C|olor pop|
|000041a0| 2d 75 70 20 6d 65 6e 75 | 20 28 69 6e 20 74 68 65 |-up menu| (in the|
|000041b0| 20 42 75 74 74 6f 6e 20 | 45 64 69 74 6f 72 29 20 | Button |Editor) |
|000041c0| 61 6e 64 20 6c 6f 6f 6b | 20 61 74 20 74 68 65 20 |and look| at the |
|000041d0| 6e 75 6d 62 65 72 20 69 | 6e 20 74 68 65 20 62 6f |number i|n the bo|
|000041e0| 74 74 6f 6d 2d 72 69 67 | 68 74 20 63 6f 72 6e 65 |ttom-rig|ht corne|
|000041f0| 72 20 6f 66 20 74 68 65 | 20 6d 65 6e 75 2e 0d 0d |r of the| menu...|
|00004200| 53 65 74 74 69 6e 67 20 | 74 68 65 20 63 6f 6c 6f |Setting |the colo|
|00004210| 72 20 74 6f 20 30 20 72 | 65 6d 6f 76 65 73 20 74 |r to 0 r|emoves t|
|00004220| 68 65 20 62 75 74 74 6f | 6e d5 73 20 63 6f 6c 6f |he butto|n.s colo|
|00004230| 72 20 61 6e 64 20 6d 61 | 6b 65 73 20 74 68 65 20 |r and ma|kes the |
|00004240| 62 75 74 74 6f 6e 20 74 | 72 61 6e 73 70 61 72 65 |button t|ranspare|
|00004250| 6e 74 2c 20 61 6c 6c 6f | 77 69 6e 67 20 74 68 65 |nt, allo|wing the|
|00004260| 20 70 61 6c 65 74 74 65 | d5 73 20 62 61 63 6b 67 | palette|.s backg|
|00004270| 72 6f 75 6e 64 20 74 6f | 20 73 68 6f 77 20 74 68 |round to| show th|
|00004280| 72 6f 75 67 68 20 28 74 | 68 65 20 73 61 6d 65 20 |rough (t|he same |
|00004290| 61 73 20 75 6e 63 68 65 | 63 6b 69 6e 67 20 74 68 |as unche|cking th|
|000042a0| 65 20 43 6f 6c 6f 72 20 | 63 68 65 63 6b 62 6f 78 |e Color |checkbox|
|000042b0| 20 69 6e 20 74 68 65 20 | 42 75 74 74 6f 6e 20 45 | in the |Button E|
|000042c0| 64 69 74 6f 72 29 2e 20 | 53 65 74 74 69 6e 67 20 |ditor). |Setting |
|000042d0| 74 68 65 20 62 75 74 74 | 6f 6e d5 73 20 2e 43 6f |the butt|on.s .Co|
|000042e0| 6c 6f 72 20 74 6f 20 61 | 20 76 61 6c 75 65 20 31 |lor to a| value 1|
|000042f0| d0 32 35 36 20 61 6c 73 | 6f 20 63 68 65 63 6b 73 |.256 als|o checks|
|00004300| 20 74 68 65 20 43 6f 6c | 6f 72 20 63 68 65 63 6b | the Col|or check|
|00004310| 62 6f 78 20 69 6e 20 74 | 68 65 20 42 75 74 74 6f |box in t|he Butto|
|00004320| 6e 20 45 64 69 74 6f 72 | 2e 0d 0d 2e 43 6f 75 6e |n Editor|....Coun|
|00004330| 74 0d 47 65 74 73 20 74 | 68 65 20 74 6f 74 61 6c |t.Gets t|he total|
|00004340| 20 6e 75 6d 62 65 72 20 | 6f 66 20 62 75 74 74 6f | number |of butto|
|00004350| 6e 73 20 6f 6e 20 74 68 | 65 20 70 61 6c 65 74 74 |ns on th|e palett|
|00004360| 65 20 28 61 20 73 68 6f | 72 74 63 75 74 20 66 6f |e (a sho|rtcut fo|
|00004370| 72 20 75 73 69 6e 67 20 | 4c 69 73 74 43 6f 75 6e |r using |ListCoun|
|00004380| 74 20 42 75 74 74 6f 6e | 2e 4c 69 73 74 29 2e 20 |t Button|.List). |
|00004390| 4e 6f 20 62 75 74 74 6f | 6e 20 73 70 65 63 69 66 |No butto|n specif|
|000043a0| 69 65 72 20 69 73 20 6e | 65 63 65 73 73 61 72 79 |ier is n|ecessary|
|000043b0| 2e 20 54 68 69 73 20 70 | 72 6f 70 65 72 74 79 20 |. This p|roperty |
|000043c0| 69 73 20 72 65 61 64 2d | 6f 6e 6c 79 2e 0d 0d 2f |is read-|only.../|
|000043d0| 2f 20 4c 6f 6f 70 20 74 | 68 72 6f 75 67 68 20 61 |/ Loop t|hrough a|
|000043e0| 6c 6c 20 74 68 65 20 62 | 75 74 74 6f 6e 73 20 61 |ll the b|uttons a|
|000043f0| 6e 64 20 63 68 61 6e 67 | 65 20 74 68 65 6d 20 74 |nd chang|e them t|
|00004400| 6f 20 61 20 6c 69 67 68 | 74 20 70 75 72 70 6c 65 |o a ligh|t purple|
|00004410| 20 63 6f 6c 6f 72 2e 0d | 56 61 72 69 61 62 6c 65 | color..|Variable|
|00004420| 20 58 0d 46 6f 72 20 58 | 20 3d 20 31 20 74 6f 20 | X.For X| = 1 to |
|00004430| 42 75 74 74 6f 6e 2e 43 | 6f 75 6e 74 0d 20 20 20 |Button.C|ount. |
|00004440| 20 20 42 75 74 74 6f 6e | 28 58 29 2e 43 6f 6c 6f | Button|(X).Colo|
|00004450| 72 20 3d 20 34 33 0d 45 | 6e 64 20 46 6f 72 0d 0d |r = 43.E|nd For..|
|00004460| 2e 44 61 74 61 0d 47 65 | 74 73 20 6f 72 20 73 65 |.Data.Ge|ts or se|
|00004470| 74 73 20 74 68 65 20 74 | 65 78 74 20 73 74 6f 72 |ts the t|ext stor|
|00004480| 65 64 20 69 6e 20 74 68 | 65 20 62 75 74 74 6f 6e |ed in th|e button|
|00004490| d5 73 20 64 61 74 61 20 | 70 72 6f 70 65 72 74 79 |.s data |property|
|000044a0| 2e 20 54 68 65 20 2e 44 | 61 74 61 20 70 72 6f 70 |. The .D|ata prop|
|000044b0| 65 72 74 79 20 69 73 20 | 73 69 6d 69 6c 61 72 20 |erty is |similar |
|000044c0| 74 6f 20 61 20 73 74 61 | 74 69 63 20 76 61 72 69 |to a sta|tic vari|
|000044d0| 61 62 6c 65 d1 4f 6e 65 | 43 6c 69 63 6b 20 73 74 |able.One|Click st|
|000044e0| 6f 72 65 73 20 74 68 65 | 20 64 61 74 61 20 69 6e |ores the| data in|
|000044f0| 20 74 68 65 20 70 61 6c | 65 74 74 65 20 66 69 6c | the pal|ette fil|
|00004500| 65 20 73 6f 20 69 74 20 | 64 6f 65 73 6e d5 74 20 |e so it |doesn.t |
|00004510| 67 65 74 20 6c 6f 73 74 | 20 77 68 65 6e 20 79 6f |get lost| when yo|
|00004520| 75 20 72 65 73 74 61 72 | 74 20 6f 72 20 73 68 75 |u restar|t or shu|
|00004530| 74 20 64 6f 77 6e 2e 20 | 55 6e 6c 69 6b 65 20 73 |t down. |Unlike s|
|00004540| 74 61 74 69 63 73 2c 20 | 68 6f 77 65 76 65 72 2c |tatics, |however,|
|00004550| 20 61 6e 79 20 62 75 74 | 74 6f 6e 20 63 61 6e 20 | any but|ton can |
|00004560| 67 65 74 20 6f 72 20 73 | 65 74 20 61 6e 6f 74 68 |get or s|et anoth|
|00004570| 65 72 20 62 75 74 74 6f | 6e d5 73 20 2e 44 61 74 |er butto|n.s .Dat|
|00004580| 61 20 70 72 6f 70 65 72 | 74 79 2e 20 0d 0d 4c 69 |a proper|ty. ..Li|
|00004590| 6b 65 20 74 68 65 20 2e | 54 65 78 74 20 61 6e 64 |ke the .|Text and|
|000045a0| 20 2e 48 65 6c 70 20 70 | 72 6f 70 65 72 74 69 65 | .Help p|ropertie|
|000045b0| 73 2c 20 2e 44 61 74 61 | 20 61 6c 77 61 79 73 20 |s, .Data| always |
|000045c0| 72 65 74 75 72 6e 73 20 | 69 74 73 20 76 61 6c 75 |returns |its valu|
|000045d0| 65 20 61 73 20 61 20 74 | 65 78 74 20 76 61 6c 75 |e as a t|ext valu|
|000045e0| 65 2c 20 72 65 67 61 72 | 64 6c 65 73 73 20 6f 66 |e, regar|dless of|
|000045f0| 20 77 68 65 74 68 65 72 | 20 79 6f 75 20 73 74 6f | whether| you sto|
|00004600| 72 65 64 20 61 20 74 65 | 78 74 20 6f 72 20 6e 75 |red a te|xt or nu|
|00004610| 6d 62 65 72 20 76 61 6c | 75 65 2e 20 0d 0d 2f 2f |mber val|ue. ..//|
|00004620| 20 41 73 6b 20 74 68 65 | 20 75 73 65 72 20 74 6f | Ask the| user to|
|00004630| 20 63 68 6f 6f 73 65 20 | 61 20 74 65 78 74 20 66 | choose |a text f|
|00004640| 69 6c 65 2c 20 74 68 65 | 6e 20 73 74 6f 72 65 20 |ile, the|n store |
|00004650| 74 68 65 20 70 61 74 68 | 20 74 6f 20 74 68 61 74 |the path| to that|
|00004660| 20 66 69 6c 65 20 69 6e | 20 74 68 65 20 62 75 74 | file in| the but|
|00004670| 74 6f 6e d5 73 20 2e 44 | 61 74 61 0d 49 66 20 4e |ton.s .D|ata.If N|
|00004680| 4f 54 20 42 75 74 74 6f | 6e 2e 44 61 74 61 20 20 |OT Butto|n.Data |
|00004690| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|000046a0| 20 20 20 20 20 20 20 20 | 2f 2f 20 6e 6f 74 68 69 | |// nothi|
|000046b0| 6e 67 20 73 74 6f 72 65 | 64 20 79 65 74 0d 20 20 |ng store|d yet. |
|000046c0| 20 20 20 42 75 74 74 6f | 6e 2e 44 61 74 61 20 3d | Butto|n.Data =|
|000046d0| 20 41 73 6b 46 69 6c 65 | 20 22 54 45 58 54 22 2c | AskFile| "TEXT",|
|000046e0| 20 22 43 68 6f 6f 73 65 | 20 61 20 74 65 78 74 20 | "Choose| a text |
|000046f0| 66 69 6c 65 3a 22 0d 45 | 6c 73 65 20 20 20 20 20 |file:".E|lse |
|00004700| 20 2f 2f 20 4f 70 65 6e | 20 74 68 65 20 66 69 6c | // Open| the fil|
|00004710| 65 0d 20 20 20 20 20 4f | 70 65 6e 20 42 75 74 74 |e. O|pen Butt|
|00004720| 6f 6e 2e 44 61 74 61 0d | 45 6e 64 20 49 66 20 0d |on.Data.|End If .|
|00004730| 0d 2f 2f 20 43 6c 65 61 | 72 20 61 6c 6c 20 73 74 |.// Clea|r all st|
|00004740| 6f 72 65 64 20 2e 44 61 | 74 61 20 69 6e 20 65 76 |ored .Da|ta in ev|
|00004750| 65 72 79 20 62 75 74 74 | 6f 6e 20 6f 6e 20 74 68 |ery butt|on on th|
|00004760| 65 20 70 61 6c 65 74 74 | 65 0d 56 61 72 69 61 62 |e palett|e.Variab|
|00004770| 6c 65 20 58 0d 46 6f 72 | 20 58 20 3d 20 31 20 74 |le X.For| X = 1 t|
|00004780| 6f 20 42 75 74 74 6f 6e | 2e 43 6f 75 6e 74 0d 20 |o Button|.Count. |
|00004790| 20 20 20 20 42 75 74 74 | 6f 6e 28 58 29 2e 44 61 | Butt|on(X).Da|
|000047a0| 74 61 20 3d 20 22 22 0d | 45 6e 64 20 46 6f 72 0d |ta = "".|End For.|
|000047b0| 0d 2e 44 65 6c 65 74 65 | 0d 54 68 65 20 2e 44 65 |..Delete|.The .De|
|000047c0| 6c 65 74 65 20 6d 65 73 | 73 61 67 65 20 70 65 72 |lete mes|sage per|
|000047d0| 6d 61 6e 65 6e 74 6c 79 | 20 64 65 6c 65 74 65 73 |manently| deletes|
|000047e0| 20 74 68 65 20 73 70 65 | 63 69 66 69 65 64 20 62 | the spe|cified b|
|000047f0| 75 74 74 6f 6e 20 66 72 | 6f 6d 20 74 68 65 20 70 |utton fr|om the p|
|00004800| 61 6c 65 74 74 65 2e 20 | 54 68 65 20 62 75 74 74 |alette. |The butt|
|00004810| 6f 6e 20 73 70 65 63 69 | 66 69 65 72 20 69 73 20 |on speci|fier is |
|00004820| 74 68 65 20 6e 61 6d 65 | 20 6f 66 20 74 68 65 20 |the name| of the |
|00004830| 62 75 74 74 6f 6e 20 74 | 6f 20 64 65 6c 65 74 65 |button t|o delete|
|00004840| 2e 20 49 66 20 79 6f 75 | 20 64 6f 6e d5 74 20 73 |. If you| don.t s|
|00004850| 70 65 63 69 66 79 20 61 | 20 62 75 74 74 6f 6e 2c |pecify a| button,|
|00004860| 20 74 68 65 20 62 75 74 | 74 6f 6e 20 63 6f 6e 74 | the but|ton cont|
|00004870| 61 69 6e 69 6e 67 20 74 | 68 65 20 73 63 72 69 70 |aining t|he scrip|
|00004880| 74 20 69 73 20 64 65 6c | 65 74 65 64 20 61 6e 64 |t is del|eted and|
|00004890| 20 74 68 65 20 73 63 72 | 69 70 74 20 73 74 6f 70 | the scr|ipt stop|
|000048a0| 73 20 72 75 6e 6e 69 6e | 67 2e 20 54 6f 20 64 65 |s runnin|g. To de|
|000048b0| 6c 65 74 65 20 61 20 62 | 75 74 74 6f 6e 20 6f 6e |lete a b|utton on|
|000048c0| 20 61 6e 6f 74 68 65 72 | 20 70 61 6c 65 74 74 65 | another| palette|
|000048d0| 2c 20 69 6e 63 6c 75 64 | 65 20 61 20 70 61 6c 65 |, includ|e a pale|
|000048e0| 74 74 65 20 73 70 65 63 | 69 66 69 65 72 20 62 65 |tte spec|ifier be|
|000048f0| 66 6f 72 65 20 74 68 65 | 20 62 75 74 74 6f 6e 20 |fore the| button |
|00004900| 73 70 65 63 69 66 69 65 | 72 2e 0d 0d 2f 2f 20 44 |specifie|r...// D|
|00004910| 65 6c 65 74 65 20 74 68 | 65 20 62 75 74 74 6f 6e |elete th|e button|
|00004920| 20 6e 61 6d 65 64 20 22 | 54 69 6c 65 20 57 69 6e | named "|Tile Win|
|00004930| 64 6f 77 73 22 0d 42 75 | 74 74 6f 6e 28 22 54 69 |dows".Bu|tton("Ti|
|00004940| 6c 65 20 57 69 6e 64 6f | 77 73 22 29 2e 44 65 6c |le Windo|ws").Del|
|00004950| 65 74 65 0d 0d 2f 2f 20 | 44 65 6c 65 74 65 20 74 |ete..// |Delete t|
|00004960| 68 65 20 62 75 74 74 6f | 6e 20 6e 61 6d 65 64 20 |he butto|n named |
|00004970| 22 4f 70 65 6e 20 54 65 | 78 74 20 45 64 69 74 6f |"Open Te|xt Edito|
|00004980| 72 22 20 6f 6e 20 74 68 | 65 20 70 61 6c 65 74 74 |r" on th|e palett|
|00004990| 65 20 6e 61 6d 65 64 20 | 22 54 6f 6f 6c 73 22 0d |e named |"Tools".|
|000049a0| 50 61 6c 65 74 74 65 28 | 22 54 6f 6f 6c 73 22 29 |Palette(|"Tools")|
|000049b0| 2e 42 75 74 74 6f 6e 28 | 22 4f 70 65 6e 20 54 65 |.Button(|"Open Te|
|000049c0| 78 74 20 45 64 69 74 6f | 72 22 29 2e 44 65 6c 65 |xt Edito|r").Dele|
|000049d0| 74 65 0d 0d 2f 2f 20 44 | 65 6c 65 74 65 20 61 6c |te..// D|elete al|
|000049e0| 6c 20 74 68 65 20 62 75 | 74 74 6f 6e 73 20 6f 6e |l the bu|ttons on|
|000049f0| 20 74 68 65 20 70 61 6c | 65 74 74 65 20 6e 61 6d | the pal|ette nam|
|00004a00| 65 64 20 22 43 6f 6f 6c | 20 42 75 74 74 6f 6e 73 |ed "Cool| Buttons|
|00004a10| 22 0d 56 61 72 69 61 62 | 6c 65 20 58 2c 20 6e 75 |".Variab|le X, nu|
|00004a20| 6d 42 75 74 74 6f 6e 73 | 0d 6e 75 6d 42 75 74 74 |mButtons|.numButt|
|00004a30| 6f 6e 73 20 3d 20 50 61 | 6c 65 74 74 65 28 22 43 |ons = Pa|lette("C|
|00004a40| 6f 6f 6c 20 42 75 74 74 | 6f 6e 73 22 29 2e 42 75 |ool Butt|ons").Bu|
|00004a50| 74 74 6f 6e 2e 43 6f 75 | 6e 74 0d 46 6f 72 20 58 |tton.Cou|nt.For X|
|00004a60| 20 3d 20 31 20 74 6f 20 | 6e 75 6d 42 75 74 74 6f | = 1 to |numButto|
|00004a70| 6e 73 0d 20 20 20 20 20 | 50 61 6c 65 74 74 65 28 |ns. |Palette(|
|00004a80| 22 43 6f 6f 6c 20 42 75 | 74 74 6f 6e 73 22 29 2e |"Cool Bu|ttons").|
|00004a90| 42 75 74 74 6f 6e 28 58 | 29 2e 44 65 6c 65 74 65 |Button(X|).Delete|
|00004aa0| 0d 45 6e 64 20 46 6f 72 | 0d 0d 2e 44 72 61 67 0d |.End For|...Drag.|
|00004ab0| 4c 65 74 73 20 79 6f 75 | 20 64 72 61 67 20 61 20 |Lets you| drag a |
|00004ac0| 62 75 74 74 6f 6e 20 61 | 6e 79 77 68 65 72 65 20 |button a|nywhere |
|00004ad0| 6f 6e 20 74 68 65 20 70 | 61 6c 65 74 74 65 20 74 |on the p|alette t|
|00004ae0| 6f 20 72 65 70 6f 73 69 | 74 69 6f 6e 20 74 68 65 |o reposi|tion the|
|00004af0| 20 62 75 74 74 6f 6e 20 | 77 69 74 68 6f 75 74 20 | button |without |
|00004b00| 6f 70 65 6e 69 6e 67 20 | 74 68 65 20 4f 6e 65 43 |opening |the OneC|
|00004b10| 6c 69 63 6b 20 45 64 69 | 74 6f 72 2e 20 54 68 65 |lick Edi|tor. The|
|00004b20| 20 64 72 61 67 67 65 64 | 20 62 75 74 74 6f 6e 20 | dragged| button |
|00004b30| 73 6e 61 70 73 20 74 6f | 20 74 68 65 20 70 61 6c |snaps to| the pal|
|00004b40| 65 74 74 65 d5 73 20 67 | 72 69 64 20 73 65 74 74 |ette.s g|rid sett|
|00004b50| 69 6e 67 73 2e 20 44 72 | 61 67 67 69 6e 67 20 74 |ings. Dr|agging t|
|00004b60| 6f 20 61 6e 6f 74 68 65 | 72 20 70 61 6c 65 74 74 |o anothe|r palett|
|00004b70| 65 20 63 6f 70 69 65 73 | 20 74 68 65 20 62 75 74 |e copies| the but|
|00004b80| 74 6f 6e 20 74 6f 20 74 | 68 61 74 20 70 61 6c 65 |ton to t|hat pale|
|00004b90| 74 74 65 2e 20 0d 0d 54 | 68 65 20 2e 44 72 61 67 |tte. ..T|he .Drag|
|00004ba0| 20 6d 65 73 73 61 67 65 | 20 77 6f 72 6b 73 20 6f | message| works o|
|00004bb0| 6e 6c 79 20 69 6e 20 61 | 20 4d 6f 75 73 65 44 6f |nly in a| MouseDo|
|00004bc0| 77 6e 20 68 61 6e 64 6c | 65 72 2e 20 57 68 65 6e |wn handl|er. When|
|00004bd0| 20 75 73 65 64 20 61 73 | 20 61 20 70 72 6f 70 65 | used as| a prope|
|00004be0| 72 74 79 2c 20 2e 44 72 | 61 67 20 72 65 74 75 72 |rty, .Dr|ag retur|
|00004bf0| 6e 73 20 74 68 65 20 6e | 61 6d 65 20 6f 66 20 74 |ns the n|ame of t|
|00004c00| 68 65 20 70 61 6c 65 74 | 74 65 20 77 68 65 72 65 |he palet|te where|
|00004c10| 20 74 68 65 20 62 75 74 | 74 6f 6e 20 77 61 73 20 | the but|ton was |
|00004c20| 64 72 6f 70 70 65 64 2e | 0d 0d 2f 2f 20 41 6c 6c |dropped.|..// All|
|00004c30| 6f 77 20 61 20 62 75 74 | 74 6f 6e 20 74 6f 20 62 |ow a but|ton to b|
|00004c40| 65 20 64 72 61 67 67 65 | 64 20 74 6f 20 61 20 6e |e dragge|d to a n|
|00004c50| 65 77 20 6c 6f 63 61 74 | 69 6f 6e 20 69 66 20 74 |ew locat|ion if t|
|00004c60| 68 65 20 43 6f 6d 6d 61 | 6e 64 20 6b 65 79 20 69 |he Comma|nd key i|
|00004c70| 73 20 68 65 6c 64 20 64 | 6f 77 6e 0d 4f 6e 20 4d |s held d|own.On M|
|00004c80| 6f 75 73 65 44 6f 77 6e | 0d 20 20 20 20 20 56 61 |ouseDown|. Va|
|00004c90| 72 69 61 62 6c 65 20 6e | 65 77 50 61 6c 65 74 74 |riable n|ewPalett|
|00004ca0| 65 0d 20 20 20 20 20 49 | 66 20 43 6f 6d 6d 61 6e |e. I|f Comman|
|00004cb0| 64 4b 65 79 0d 20 20 20 | 20 20 20 20 20 20 20 6e |dKey. | n|
|00004cc0| 65 77 50 61 6c 65 74 74 | 65 20 3d 20 42 75 74 74 |ewPalett|e = Butt|
|00004cd0| 6f 6e 2e 44 72 61 67 0d | 20 20 20 20 20 45 6c 73 |on.Drag.| Els|
|00004ce0| 65 20 0d 20 20 20 20 20 | 20 20 20 20 20 42 65 65 |e . | Bee|
|00004cf0| 70 20 0d 20 20 20 20 20 | 45 6e 64 20 49 66 20 0d |p . |End If .|
|00004d00| 20 20 20 20 20 4d 65 73 | 73 61 67 65 20 22 42 75 | Mes|sage "Bu|
|00004d10| 74 74 6f 6e 20 77 61 73 | 20 64 72 61 67 67 65 64 |tton was| dragged|
|00004d20| 20 74 6f 20 70 61 6c 65 | 74 74 65 20 22 20 26 20 | to pale|tte " & |
|00004d30| 6e 65 77 50 61 6c 65 74 | 74 65 0d 45 6e 64 20 4d |newPalet|te.End M|
|00004d40| 6f 75 73 65 44 6f 77 6e | 0d 0d 2e 45 78 69 73 74 |ouseDown|...Exist|
|00004d50| 73 0d 52 65 74 75 72 6e | 73 20 54 72 75 65 20 28 |s.Return|s True (|
|00004d60| 31 29 20 69 66 20 74 68 | 65 20 73 70 65 63 69 66 |1) if th|e specif|
|00004d70| 69 65 64 20 62 75 74 74 | 6f 6e 20 65 78 69 73 74 |ied butt|on exist|
|00004d80| 73 2c 20 6f 74 68 65 72 | 77 69 73 65 20 46 61 6c |s, other|wise Fal|
|00004d90| 73 65 20 28 30 29 2e 20 | 59 6f 75 20 63 61 6e 20 |se (0). |You can |
|00004da0| 75 73 65 20 74 68 69 73 | 20 70 72 6f 70 65 72 74 |use this| propert|
|00004db0| 79 20 74 6f 20 64 65 74 | 65 72 6d 69 6e 65 20 69 |y to det|ermine i|
|00004dc0| 66 20 61 20 62 75 74 74 | 6f 6e 20 65 78 69 73 74 |f a butt|on exist|
|00004dd0| 73 20 62 65 66 6f 72 65 | 20 70 65 72 66 6f 72 6d |s before| perform|
|00004de0| 69 6e 67 20 73 6f 6d 65 | 20 6f 74 68 65 72 20 61 |ing some| other a|
|00004df0| 63 74 69 6f 6e 20 6f 6e | 20 74 68 65 20 62 75 74 |ction on| the but|
|00004e00| 74 6f 6e 2e 0d 0d 2f 2f | 20 49 66 20 74 68 65 20 |ton...//| If the |
|00004e10| 62 75 74 74 6f 6e 20 6e | 61 6d 65 64 20 22 53 77 |button n|amed "Sw|
|00004e20| 69 74 63 68 65 72 22 20 | 65 78 69 73 74 73 2c 20 |itcher" |exists, |
|00004e30| 74 68 65 6e 20 63 68 61 | 6e 67 65 20 69 74 73 20 |then cha|nge its |
|00004e40| 63 6f 6c 6f 72 20 74 6f | 20 72 65 64 2c 20 6f 74 |color to| red, ot|
|00004e50| 68 65 72 77 69 73 65 0d | 2f 2f 20 73 68 6f 77 20 |herwise.|// show |
|00004e60| 61 6e 20 65 72 72 6f 72 | 20 6d 65 73 73 61 67 65 |an error| message|
|00004e70| 0d 49 66 20 42 75 74 74 | 6f 6e 28 22 53 77 69 74 |.If Butt|on("Swit|
|00004e80| 63 68 65 72 22 29 2e 45 | 78 69 73 74 73 0d 20 20 |cher").E|xists. |
|00004e90| 20 20 20 42 75 74 74 6f | 6e 28 22 53 77 69 74 63 | Butto|n("Switc|
|00004ea0| 68 65 72 22 29 2e 43 6f | 6c 6f 72 20 3d 20 33 36 |her").Co|lor = 36|
|00004eb0| 0d 45 6c 73 65 0d 20 20 | 20 20 20 4d 65 73 73 61 |.Else. | Messa|
|00004ec0| 67 65 20 22 43 61 6e d5 | 74 20 66 69 6e 64 20 74 |ge "Can.|t find t|
|00004ed0| 68 65 20 53 77 69 74 63 | 68 65 72 20 62 75 74 74 |he Switc|her butt|
|00004ee0| 6f 6e 22 0d 45 6e 64 20 | 49 66 0d 0d 2f 2f 20 49 |on".End |If..// I|
|00004ef0| 66 20 74 68 65 20 62 75 | 74 74 6f 6e 20 6e 61 6d |f the bu|tton nam|
|00004f00| 65 64 20 22 43 75 72 72 | 65 6e 74 20 54 61 73 6b |ed "Curr|ent Task|
|00004f10| 22 20 64 6f 65 73 6e d5 | 74 20 61 6c 72 65 61 64 |" doesn.|t alread|
|00004f20| 79 20 65 78 69 73 74 2c | 20 74 68 65 6e 20 63 72 |y exist,| then cr|
|00004f30| 65 61 74 65 20 69 74 0d | 49 66 20 4e 4f 54 20 42 |eate it.|If NOT B|
|00004f40| 75 74 74 6f 6e 28 22 43 | 75 72 72 65 6e 74 20 54 |utton("C|urrent T|
|00004f50| 61 73 6b 22 29 2e 45 78 | 69 73 74 73 0d 20 20 20 |ask").Ex|ists. |
|00004f60| 20 20 42 75 74 74 6f 6e | 28 22 43 75 72 72 65 6e | Button|("Curren|
|00004f70| 74 20 54 61 73 6b 22 29 | 2e 4e 65 77 0d 45 6e 64 |t Task")|.New.End|
|00004f80| 20 49 66 0d 0d 2e 48 65 | 69 67 68 74 0d 47 65 74 | If...He|ight.Get|
|00004f90| 73 20 6f 72 20 73 65 74 | 73 20 74 68 65 20 62 75 |s or set|s the bu|
|00004fa0| 74 74 6f 6e d5 73 20 68 | 65 69 67 68 74 2e 20 59 |tton.s h|eight. Y|
|00004fb0| 6f 75 20 63 61 6e 20 73 | 65 74 20 74 68 65 20 68 |ou can s|et the h|
|00004fc0| 65 69 67 68 74 20 74 6f | 20 31 20 74 6f 20 64 72 |eight to| 1 to dr|
|00004fd0| 61 77 20 61 20 62 75 74 | 74 6f 6e 20 61 73 20 61 |aw a but|ton as a|
|00004fe0| 20 68 6f 72 69 7a 6f 6e | 74 61 6c 20 6c 69 6e 65 | horizon|tal line|
|00004ff0| 2e 0d 0d 2f 2f 20 43 68 | 61 6e 67 65 20 74 68 65 |...// Ch|ange the|
|00005000| 20 68 65 69 67 68 74 20 | 6f 66 20 74 68 65 20 62 | height |of the b|
|00005010| 75 74 74 6f 6e 20 6e 61 | 6d 65 64 20 51 75 69 63 |utton na|med Quic|
|00005020| 6b 65 6e 20 74 6f 20 32 | 32 0d 42 75 74 74 6f 6e |ken to 2|2.Button|
|00005030| 28 22 51 75 69 63 6b 65 | 6e 22 29 2e 48 65 69 67 |("Quicke|n").Heig|
|00005040| 68 74 20 3d 20 32 32 0d | 0d 2e 48 65 6c 70 0d 47 |ht = 22.|..Help.G|
|00005050| 65 74 73 20 6f 72 20 73 | 65 74 73 20 74 68 65 20 |ets or s|ets the |
|00005060| 62 75 74 74 6f 6e d5 73 | 20 42 61 6c 6c 6f 6f 6e |button.s| Balloon|
|00005070| 20 48 65 6c 70 20 6d 65 | 73 73 61 67 65 2e 20 54 | Help me|ssage. T|
|00005080| 68 65 72 65 20 69 73 20 | 6e 6f 20 6c 69 6d 69 74 |here is |no limit|
|00005090| 20 6f 6e 20 74 68 65 20 | 6c 65 6e 67 74 68 20 6f | on the |length o|
|000050a0| 66 20 74 68 65 20 68 65 | 6c 70 20 6d 65 73 73 61 |f the he|lp messa|
|000050b0| 67 65 2e 0d 0d 42 75 74 | 74 6f 6e 28 d2 51 75 69 |ge...But|ton(.Qui|
|000050c0| 63 6b 65 6e d3 29 2e 48 | 65 6c 70 20 3d 20 d2 54 |cken.).H|elp = .T|
|000050d0| 6f 20 6f 70 65 6e 20 51 | 75 69 63 6b 65 6e 2c 20 |o open Q|uicken, |
|000050e0| 63 6c 69 63 6b 20 68 65 | 72 65 2e d3 0d 0d 2e 49 |click he|re.....I|
|000050f0| 63 6f 6e 0d 47 65 74 73 | 20 6f 72 20 73 65 74 73 |con.Gets| or sets|
|00005100| 20 74 68 65 20 62 75 74 | 74 6f 6e d5 73 20 69 63 | the but|ton.s ic|
|00005110| 6f 6e 2e 20 53 70 65 63 | 69 66 79 20 61 20 6e 75 |on. Spec|ify a nu|
|00005120| 6d 62 65 72 20 31 d0 34 | 20 74 6f 20 73 65 74 20 |mber 1.4| to set |
|00005130| 74 68 65 20 62 75 74 74 | 6f 6e d5 73 20 69 63 6f |the butt|on.s ico|
|00005140| 6e 20 74 6f 20 6f 6e 65 | 20 6f 66 20 74 68 65 20 |n to one| of the |
|00005150| 66 6f 75 72 20 73 74 6f | 72 65 64 20 69 63 6f 6e |four sto|red icon|
|00005160| 73 2e 20 53 65 74 74 69 | 6e 67 20 2e 49 63 6f 6e |s. Setti|ng .Icon|
|00005170| 20 74 6f 20 30 20 63 61 | 75 73 65 73 20 6e 6f 20 | to 0 ca|uses no |
|00005180| 69 63 6f 6e 20 74 6f 20 | 61 70 70 65 61 72 20 6f |icon to |appear o|
|00005190| 6e 20 74 68 65 20 62 75 | 74 74 6f 6e 2e 20 28 54 |n the bu|tton. (T|
|000051a0| 68 65 20 69 63 6f 6e 20 | 69 73 6e d5 74 20 64 65 |he icon |isn.t de|
|000051b0| 6c 65 74 65 64 20 66 72 | 6f 6d 20 74 68 65 20 62 |leted fr|om the b|
|000051c0| 75 74 74 6f 6e 3b 20 69 | 74 20 6a 75 73 74 20 64 |utton; i|t just d|
|000051d0| 6f 65 73 6e d5 74 20 61 | 70 70 65 61 72 2e 29 0d |oesn.t a|ppear.).|
|000051e0| 0d 2f 2f 20 53 65 74 20 | 74 68 65 20 62 75 74 74 |.// Set |the butt|
|000051f0| 6f 6e d5 73 20 69 63 6f | 6e 20 74 6f 20 69 63 6f |on.s ico|n to ico|
|00005200| 6e 20 23 31 0d 42 75 74 | 74 6f 6e 2e 49 63 6f 6e |n #1.But|ton.Icon|
|00005210| 20 3d 20 31 0d 0d 2f 2f | 20 52 65 6d 6f 76 65 20 | = 1..//| Remove |
|00005220| 74 68 65 20 62 75 74 74 | 6f 6e d5 73 20 69 63 6f |the butt|on.s ico|
|00005230| 6e 0d 42 75 74 74 6f 6e | 2e 49 63 6f 6e 20 3d 20 |n.Button|.Icon = |
|00005240| 30 0d 0d 59 6f 75 20 63 | 61 6e 20 61 6c 73 6f 20 |0..You c|an also |
|00005250| 63 6f 70 79 20 61 6e 20 | 69 63 6f 6e 20 66 72 6f |copy an |icon fro|
|00005260| 6d 20 6f 6e 65 20 62 75 | 74 74 6f 6e 20 74 6f 20 |m one bu|tton to |
|00005270| 61 6e 6f 74 68 65 72 20 | 62 75 74 74 6f 6e 20 75 |another |button u|
|00005280| 73 69 6e 67 20 74 68 65 | 20 66 6f 6c 6c 6f 77 69 |sing the| followi|
|00005290| 6e 67 20 73 79 6e 74 61 | 78 3a 0d 0d 42 75 74 74 |ng synta|x:..Butt|
|000052a0| 6f 6e 2e 49 63 6f 6e 20 | 3d 20 69 63 6f 6e 2d 6e |on.Icon |= icon-n|
|000052b0| 75 6d 62 65 72 2c 20 42 | 75 74 74 6f 6e 28 62 75 |umber, B|utton(bu|
|000052c0| 74 74 6f 6e 2d 73 70 65 | 63 69 66 69 65 72 29 2e |tton-spe|cifier).|
|000052d0| 49 63 6f 6e 0d 0d 54 68 | 65 20 73 74 61 74 65 6d |Icon..Th|e statem|
|000052e0| 65 6e 74 20 63 6f 70 69 | 65 73 20 74 68 65 20 63 |ent copi|es the c|
|000052f0| 75 72 72 65 6e 74 6c 79 | 20 76 69 73 69 62 6c 65 |urrently| visible|
|00005300| 20 69 63 6f 6e 20 66 72 | 6f 6d 20 74 68 65 20 73 | icon fr|om the s|
|00005310| 70 65 63 69 66 69 65 64 | 20 62 75 74 74 6f 6e 20 |pecified| button |
|00005320| 74 6f 20 74 68 65 20 63 | 75 72 72 65 6e 74 20 62 |to the c|urrent b|
|00005330| 75 74 74 6f 6e 2e 20 49 | 63 6f 6e 2d 6e 75 6d 62 |utton. I|con-numb|
|00005340| 65 72 20 69 73 20 61 20 | 6e 75 6d 62 65 72 20 31 |er is a |number 1|
|00005350| d0 34 20 74 68 61 74 20 | 73 70 65 63 69 66 69 65 |.4 that |specifie|
|00005360| 73 20 77 68 69 63 68 20 | 69 63 6f 6e 20 79 6f 75 |s which |icon you|
|00005370| 20 77 61 6e 74 20 74 6f | 20 63 6f 70 79 20 74 6f | want to| copy to|
|00005380| 20 69 6e 20 74 68 65 20 | 63 75 72 72 65 6e 74 20 | in the |current |
|00005390| 62 75 74 74 6f 6e 2e 20 | 0d 0d 2f 2f 20 43 6f 70 |button. |..// Cop|
|000053a0| 79 20 74 68 65 20 69 63 | 6f 6e 20 63 75 72 72 65 |y the ic|on curre|
|000053b0| 6e 74 6c 79 20 61 70 70 | 65 61 72 69 6e 67 20 6f |ntly app|earing o|
|000053c0| 6e 20 74 68 65 20 43 68 | 6f 6f 73 65 72 20 62 75 |n the Ch|ooser bu|
|000053d0| 74 74 6f 6e 20 74 6f 20 | 74 68 69 73 20 62 75 74 |tton to |this but|
|000053e0| 74 6f 6e d5 73 20 69 63 | 6f 6e 20 23 32 0d 42 75 |ton.s ic|on #2.Bu|
|000053f0| 74 74 6f 6e 2e 49 63 6f | 6e 20 3d 20 32 2c 20 42 |tton.Ico|n = 2, B|
|00005400| 75 74 74 6f 6e 28 22 43 | 68 6f 6f 73 65 72 22 29 |utton("C|hooser")|
|00005410| 2e 49 63 6f 6e 0d 0d 59 | 6f 75 20 63 61 6e 20 63 |.Icon..Y|ou can c|
|00005420| 6f 70 79 20 61 20 31 36 | 2d 20 6f 72 20 33 32 2d |opy a 16|- or 32-|
|00005430| 70 69 78 65 6c 20 69 63 | 6f 6e 20 66 72 6f 6d 20 |pixel ic|on from |
|00005440| 61 20 66 69 6c 65 d5 73 | 20 46 69 6e 64 65 72 20 |a file.s| Finder |
|00005450| 69 63 6f 6e 20 74 6f 20 | 61 20 62 75 74 74 6f 6e |icon to |a button|
|00005460| d5 73 20 69 63 6f 6e 20 | 75 73 69 6e 67 20 74 68 |.s icon |using th|
|00005470| 69 73 20 73 79 6e 74 61 | 78 3a 0d 0d 42 75 74 74 |is synta|x:..Butt|
|00005480| 6f 6e 2e 49 63 6f 6e 20 | 3d 20 69 63 6f 6e 2d 6e |on.Icon |= icon-n|
|00005490| 75 6d 62 65 72 2c 20 70 | 61 74 68 20 5b 2c 20 69 |umber, p|ath [, i|
|000054a0| 63 6f 6e 2d 73 69 7a 65 | 5d 0d 0d 50 61 74 68 20 |con-size|]..Path |
|000054b0| 69 73 20 61 20 70 61 74 | 68 20 74 6f 20 61 6e 20 |is a pat|h to an |
|000054c0| 61 70 70 6c 69 63 61 74 | 69 6f 6e 2c 20 64 6f 63 |applicat|ion, doc|
|000054d0| 75 6d 65 6e 74 2c 20 66 | 6f 6c 64 65 72 2c 20 6f |ument, f|older, o|
|000054e0| 72 20 6f 74 68 65 72 20 | 46 69 6e 64 65 72 20 69 |r other |Finder i|
|000054f0| 74 65 6d 2e 20 49 66 20 | 74 68 65 20 66 69 6c 65 |tem. If |the file|
|00005500| 20 79 6f 75 d5 72 65 20 | 63 6f 70 79 69 6e 67 20 | you.re |copying |
|00005510| 61 6e 20 69 63 6f 6e 20 | 66 72 6f 6d 20 68 61 73 |an icon |from has|
|00005520| 20 61 20 63 75 73 74 6f | 6d 20 69 63 6f 6e 2c 20 | a custo|m icon, |
|00005530| 4f 6e 65 43 6c 69 63 6b | 20 63 6f 70 65 73 20 74 |OneClick| copes t|
|00005540| 68 65 20 63 75 73 74 6f | 6d 20 69 63 6f 6e 2c 20 |he custo|m icon, |
|00005550| 6e 6f 74 20 74 68 65 20 | 66 69 6c 65 d5 73 20 6f |not the |file.s o|
|00005560| 72 69 67 69 6e 61 6c 20 | 69 63 6f 6e 2e 20 49 63 |riginal |icon. Ic|
|00005570| 6f 6e 2d 73 69 7a 65 20 | 69 6e 64 69 63 61 74 65 |on-size |indicate|
|00005580| 73 20 77 68 65 74 68 65 | 72 20 79 6f 75 20 77 61 |s whethe|r you wa|
|00005590| 6e 74 20 74 6f 20 63 6f | 70 79 20 74 68 65 20 73 |nt to co|py the s|
|000055a0| 6d 61 6c 6c 20 69 63 6f | 6e 20 28 31 36 29 20 6f |mall ico|n (16) o|
|000055b0| 72 20 6c 61 72 67 65 20 | 69 63 6f 6e 20 28 33 32 |r large |icon (32|
|000055c0| 29 2e 20 54 68 65 20 64 | 65 66 61 75 6c 74 20 69 |). The d|efault i|
|000055d0| 73 20 74 68 65 20 73 6d | 61 6c 6c 20 69 63 6f 6e |s the sm|all icon|
|000055e0| 20 69 66 20 79 6f 75 20 | 64 6f 6e d5 74 20 73 70 | if you |don.t sp|
|000055f0| 65 63 69 66 79 20 69 63 | 6f 6e 2d 73 69 7a 65 2e |ecify ic|on-size.|
|00005600| 0d 0d 2f 2f 20 53 65 74 | 20 74 68 65 20 62 75 74 |..// Set| the but|
|00005610| 74 6f 6e d5 73 20 69 63 | 6f 6e 20 23 31 20 74 6f |ton.s ic|on #1 to|
|00005620| 20 74 68 65 20 53 69 6d | 70 6c 65 54 65 78 74 20 | the Sim|pleText |
|00005630| 61 70 70 6c 69 63 61 74 | 69 6f 6e d5 73 20 33 32 |applicat|ion.s 32|
|00005640| 2d 70 69 78 65 6c 20 69 | 63 6f 6e 0d 42 75 74 74 |-pixel i|con.Butt|
|00005650| 6f 6e 2e 49 63 6f 6e 20 | 3d 20 31 2c 20 22 4d 61 |on.Icon |= 1, "Ma|
|00005660| 63 20 48 44 3a 41 70 70 | 6c 69 63 61 74 69 6f 6e |c HD:App|lication|
|00005670| 73 3a 53 69 6d 70 6c 65 | 54 65 78 74 22 2c 20 33 |s:Simple|Text", 3|
|00005680| 32 0d 0d 2e 49 63 6f 6e | 41 6c 69 67 6e 0d 47 65 |2...Icon|Align.Ge|
|00005690| 74 73 20 6f 72 20 73 65 | 74 73 20 74 68 65 20 61 |ts or se|ts the a|
|000056a0| 6c 69 67 6e 6d 65 6e 74 | 20 6f 66 20 61 6e 20 69 |lignment| of an i|
|000056b0| 63 6f 6e 20 6f 6e 20 74 | 68 65 20 62 75 74 74 6f |con on t|he butto|
|000056c0| 6e 2e 20 54 68 65 20 6e | 75 6d 62 65 72 73 20 30 |n. The n|umbers 0|
|000056d0| 20 61 6e 64 20 35 2d 31 | 32 20 63 6f 72 72 65 73 | and 5-1|2 corres|
|000056e0| 70 6f 6e 64 20 74 6f 20 | 74 68 65 20 39 20 70 6f |pond to |the 9 po|
|000056f0| 73 69 74 69 6f 6e 73 20 | 6f 6e 20 74 68 65 20 50 |sitions |on the P|
|00005700| 6f 73 69 74 69 6f 6e 20 | 67 72 69 64 20 69 6e 20 |osition |grid in |
|00005710| 74 68 65 20 42 75 74 74 | 6f 6e 20 45 64 69 74 6f |the Butt|on Edito|
|00005720| 72 2e 20 28 54 68 65 73 | 65 20 76 61 6c 75 65 73 |r. (Thes|e values|
|00005730| 20 61 72 65 20 74 68 65 | 20 73 61 6d 65 20 66 6f | are the| same fo|
|00005740| 72 20 74 68 65 20 2e 54 | 65 78 74 41 6c 69 67 6e |r the .T|extAlign|
|00005750| 20 70 72 6f 70 65 72 74 | 79 2c 20 65 78 63 65 70 | propert|y, excep|
|00005760| 74 20 2e 49 63 6f 6e 41 | 6c 69 67 6e 20 64 6f 65 |t .IconA|lign doe|
|00005770| 73 6e d5 74 20 75 73 65 | 20 76 61 6c 75 65 73 20 |sn.t use| values |
|00005780| 31 d0 34 2e 29 0d 0d 46 | 6f 72 20 61 20 64 69 61 |1.4.)..F|or a dia|
|00005790| 67 72 61 6d 20 6f 66 20 | 69 63 6f 6e 20 70 6f 73 |gram of |icon pos|
|000057a0| 69 74 69 6f 6e 73 20 61 | 6e 64 20 74 68 65 69 72 |itions a|nd their|
|000057b0| 20 63 6f 72 72 65 73 70 | 6f 6e 64 69 6e 67 20 6e | corresp|onding n|
|000057c0| 75 6d 62 65 72 73 2c 20 | 73 65 65 20 2e 49 63 6f |umbers, |see .Ico|
|000057d0| 6e 41 6c 69 67 6e 20 6f | 6e 20 70 61 67 65 20 31 |nAlign o|n page 1|
|000057e0| 35 34 20 69 6e 20 74 68 | 65 20 4f 6e 65 43 6c 69 |54 in th|e OneCli|
|000057f0| 63 6b 20 41 75 74 68 6f | 72 69 6e 67 20 47 75 69 |ck Autho|ring Gui|
|00005800| 64 65 2e 0d 0d 2e 49 6e | 64 65 78 0d 52 65 74 75 |de....In|dex.Retu|
|00005810| 72 6e 73 20 74 68 65 20 | 63 6f 72 72 65 73 70 6f |rns the |correspo|
|00005820| 6e 64 69 6e 67 20 69 6e | 64 65 78 20 6e 75 6d 62 |nding in|dex numb|
|00005830| 65 72 20 66 6f 72 20 74 | 68 65 20 62 75 74 74 6f |er for t|he butto|
|00005840| 6e 20 77 68 65 6e 20 74 | 68 65 20 62 75 74 74 6f |n when t|he butto|
|00005850| 6e 20 69 73 20 73 70 65 | 63 69 66 69 65 64 20 62 |n is spe|cified b|
|00005860| 79 20 6e 61 6d 65 20 28 | 31 20 66 6f 72 20 74 68 |y name (|1 for th|
|00005870| 65 20 66 69 72 73 74 20 | 62 75 74 74 6f 6e 2c 20 |e first |button, |
|00005880| 32 20 66 6f 72 20 74 68 | 65 20 73 65 63 6f 6e 64 |2 for th|e second|
|00005890| 2c 20 61 6e 64 20 73 6f | 20 6f 6e 29 2e 20 59 6f |, and so| on). Yo|
|000058a0| 75 20 63 61 6e 20 61 73 | 73 69 67 6e 20 61 20 6e |u can as|sign a n|
|000058b0| 75 6d 65 72 69 63 20 76 | 61 6c 75 65 20 74 6f 20 |umeric v|alue to |
|000058c0| 2e 49 6e 64 65 78 20 74 | 6f 20 63 68 61 6e 67 65 |.Index t|o change|
|000058d0| 20 74 68 65 20 62 75 74 | 74 6f 6e 20 6f 72 64 65 | the but|ton orde|
|000058e0| 72 2e 20 0d 0d 43 68 61 | 6e 67 69 6e 67 20 42 75 |r. ..Cha|nging Bu|
|000058f0| 74 74 6f 6e 2e 49 6e 64 | 65 78 20 76 69 73 69 62 |tton.Ind|ex visib|
|00005900| 6c 79 20 63 68 61 6e 67 | 65 73 20 74 68 65 20 6f |ly chang|es the o|
|00005910| 72 64 65 72 20 69 6e 20 | 77 68 69 63 68 20 6f 76 |rder in |which ov|
|00005920| 65 72 6c 61 70 70 65 64 | 20 62 75 74 74 6f 6e 73 |erlapped| buttons|
|00005930| 20 61 72 65 20 64 72 61 | 77 6e 2e 20 41 20 62 75 | are dra|wn. A bu|
|00005940| 74 74 6f 6e 20 77 69 74 | 68 20 61 20 68 69 67 68 |tton wit|h a high|
|00005950| 65 72 20 69 6e 64 65 78 | 20 6e 75 6d 62 65 72 20 |er index| number |
|00005960| 64 72 61 77 73 20 6f 6e | 20 74 6f 70 20 6f 66 20 |draws on| top of |
|00005970| 61 20 62 75 74 74 6f 6e | 20 77 69 74 68 20 61 20 |a button| with a |
|00005980| 6c 6f 77 65 72 20 69 6e | 64 65 78 20 6e 75 6d 62 |lower in|dex numb|
|00005990| 65 72 2e 0d 0d 2f 2f 20 | 4d 61 6b 65 20 74 68 69 |er...// |Make thi|
|000059a0| 73 20 62 75 74 74 6f 6e | 20 74 68 65 20 66 69 72 |s button| the fir|
|000059b0| 73 74 20 62 75 74 74 6f | 6e 20 64 72 61 77 6e 20 |st butto|n drawn |
|000059c0| 6f 6e 20 74 68 65 20 70 | 61 6c 65 74 74 65 20 0d |on the p|alette .|
|000059d0| 2f 2f 20 41 6e 79 20 6f | 76 65 72 6c 61 70 70 69 |// Any o|verlappi|
|000059e0| 6e 67 20 62 75 74 74 6f | 6e 73 20 61 72 65 20 64 |ng butto|ns are d|
|000059f0| 72 61 77 6e 20 6f 6e 20 | 74 6f 70 20 6f 66 20 74 |rawn on |top of t|
|00005a00| 68 69 73 20 62 75 74 74 | 6f 6e 0d 42 75 74 74 6f |his butt|on.Butto|
|00005a10| 6e 2e 49 6e 64 65 78 20 | 3d 20 31 0d 0d 2f 2f 20 |n.Index |= 1..// |
|00005a20| 4d 61 6b 65 20 74 68 69 | 73 20 62 75 74 74 6f 6e |Make thi|s button|
|00005a30| 20 74 68 65 20 6c 61 73 | 74 20 62 75 74 74 6f 6e | the las|t button|
|00005a40| 20 64 72 61 77 6e 20 6f | 6e 20 74 68 65 20 70 61 | drawn o|n the pa|
|00005a50| 6c 65 74 74 65 0d 2f 2f | 20 41 6e 79 20 6f 76 65 |lette.//| Any ove|
|00005a60| 72 6c 61 70 70 69 6e 67 | 20 62 75 74 74 6f 6e 73 |rlapping| buttons|
|00005a70| 20 61 72 65 20 64 72 61 | 77 6e 20 62 65 68 69 6e | are dra|wn behin|
|00005a80| 64 20 74 68 69 73 20 62 | 75 74 74 6f 6e 0d 42 75 |d this b|utton.Bu|
|00005a90| 74 74 6f 6e 2e 49 6e 64 | 65 78 20 3d 20 42 75 74 |tton.Ind|ex = But|
|00005aa0| 74 6f 6e 2e 43 6f 75 6e | 74 0d 0d 2e 4b 65 79 53 |ton.Coun|t...KeyS|
|00005ab0| 68 6f 72 74 43 75 74 0d | 47 65 74 73 20 6f 72 20 |hortCut.|Gets or |
|00005ac0| 73 65 74 73 20 74 68 65 | 20 62 75 74 74 6f 6e d5 |sets the| button.|
|00005ad0| 73 20 6b 65 79 62 6f 61 | 72 64 20 73 68 6f 72 74 |s keyboa|rd short|
|00005ae0| 63 75 74 2e 20 49 6e 20 | 74 68 65 20 73 74 72 69 |cut. In |the stri|
|00005af0| 6e 67 20 74 68 61 74 20 | 64 65 73 63 72 69 62 65 |ng that |describe|
|00005b00| 73 20 74 68 65 20 6b 65 | 79 62 6f 61 72 64 20 73 |s the ke|yboard s|
|00005b10| 68 6f 72 74 63 75 74 2c | 20 75 73 65 20 74 68 65 |hortcut,| use the|
|00005b20| 20 66 6f 6c 6c 6f 77 69 | 6e 67 20 6b 65 79 77 6f | followi|ng keywo|
|00005b30| 72 64 73 20 74 6f 20 64 | 65 73 63 72 69 62 65 20 |rds to d|escribe |
|00005b40| 6d 6f 64 69 66 69 65 72 | 20 6b 65 79 73 2e 0d 0d |modifier| keys...|
|00005b50| 4b 65 79 20 20 20 20 20 | 20 20 20 20 20 20 20 20 |Key | |
|00005b60| 20 20 4b 65 79 77 6f 72 | 64 20 69 6e 20 73 68 6f | Keywor|d in sho|
|00005b70| 72 74 63 75 74 20 73 74 | 72 69 6e 67 0d 43 6f 6d |rtcut st|ring.Com|
|00005b80| 6d 61 6e 64 20 20 20 20 | 20 20 20 20 20 20 20 20 |mand | |
|00005b90| 20 63 6d 64 2d 0d 53 68 | 69 66 74 20 20 20 20 20 | cmd-.Sh|ift |
|00005ba0| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 73 68 | | sh|
|00005bb0| 69 66 74 2d 0d 4f 70 74 | 69 6f 6e 20 20 20 20 20 |ift-.Opt|ion |
|00005bc0| 20 20 20 20 20 20 20 20 | 20 20 20 20 6f 70 74 2d | | opt-|
|00005bd0| 0d 43 6f 6e 74 72 6f 6c | 20 20 20 20 20 20 20 20 |.Control| |
|00005be0| 20 20 20 20 20 20 20 20 | 63 74 6c 2d 0d 4e 75 6d | |ctl-.Num|
|00005bf0| 65 72 69 63 20 6b 65 79 | 70 61 64 20 20 20 6e 75 |eric key|pad nu|
|00005c00| 6d 2d 0d 0d 46 6f 72 20 | 65 78 61 6d 70 6c 65 2c |m-..For |example,|
|00005c10| 20 74 68 65 20 73 74 72 | 69 6e 67 20 d2 63 6d 64 | the str|ing .cmd|
|00005c20| 2d 6f 70 74 2d 31 d3 20 | 61 73 73 69 67 6e 73 20 |-opt-1. |assigns |
|00005c30| 74 68 65 20 73 68 6f 72 | 74 63 75 74 20 43 6f 6d |the shor|tcut Com|
|00005c40| 6d 61 6e 64 2d 4f 70 74 | 69 6f 6e 2d 31 2c 20 61 |mand-Opt|ion-1, a|
|00005c50| 6e 64 20 74 68 65 20 73 | 74 72 69 6e 67 20 d2 6e |nd the s|tring .n|
|00005c60| 75 6d 2d 37 d3 20 61 73 | 73 69 67 6e 73 20 74 68 |um-7. as|signs th|
|00005c70| 65 20 6b 65 79 62 6f 61 | 72 64 20 73 68 6f 72 74 |e keyboa|rd short|
|00005c80| 63 75 74 20 74 6f 20 74 | 68 65 20 37 20 6b 65 79 |cut to t|he 7 key|
|00005c90| 20 6f 6e 20 74 68 65 20 | 6e 75 6d 65 72 69 63 20 | on the |numeric |
|00005ca0| 6b 65 79 70 61 64 2e 20 | 53 65 74 20 74 68 65 20 |keypad. |Set the |
|00005cb0| 73 68 6f 72 74 63 75 74 | 20 74 6f 20 74 68 65 20 |shortcut| to the |
|00005cc0| 65 6d 70 74 79 20 73 74 | 72 69 6e 67 20 28 22 22 |empty st|ring (""|
|00005cd0| 29 20 74 6f 20 72 65 6d | 6f 76 65 20 74 68 65 20 |) to rem|ove the |
|00005ce0| 73 68 6f 72 74 63 75 74 | 2e 0d 0d 2f 2f 20 53 65 |shortcut|...// Se|
|00005cf0| 74 20 62 75 74 74 6f 6e | 20 73 68 6f 72 74 63 75 |t button| shortcu|
|00005d00| 74 20 74 6f 20 43 6f 6d | 6d 61 6e 64 2d 53 68 69 |t to Com|mand-Shi|
|00005d10| 66 74 2d 4f 70 74 69 6f | 6e 2d 43 6f 6e 74 72 6f |ft-Optio|n-Contro|
|00005d20| 6c 2d 43 0d 42 75 74 74 | 6f 6e 2e 4b 65 79 53 68 |l-C.Butt|on.KeySh|
|00005d30| 6f 72 74 43 75 74 20 3d | 20 22 63 6d 64 2d 73 68 |ortCut =| "cmd-sh|
|00005d40| 69 66 74 2d 6f 70 74 2d | 63 74 6c 2d 63 22 0d 0d |ift-opt-|ctl-c"..|
|00005d50| 2f 2f 20 52 65 6d 6f 76 | 65 20 74 68 65 20 73 68 |// Remov|e the sh|
|00005d60| 6f 72 74 63 75 74 20 66 | 72 6f 6d 20 74 68 65 20 |ortcut f|rom the |
|00005d70| 62 75 74 74 6f 6e 20 6e | 61 6d 65 64 20 d2 4f 6c |button n|amed .Ol|
|00005d80| 69 76 69 61 d3 0d 42 75 | 74 74 6f 6e 28 22 4f 6c |ivia..Bu|tton("Ol|
|00005d90| 69 76 69 61 22 29 2e 4b | 65 79 53 68 6f 72 74 43 |ivia").K|eyShortC|
|00005da0| 75 74 20 3d 20 22 22 0d | 0d 2e 4c 65 66 74 0d 47 |ut = "".|..Left.G|
|00005db0| 65 74 73 20 6f 72 20 73 | 65 74 73 20 74 68 65 20 |ets or s|ets the |
|00005dc0| 62 75 74 74 6f 6e d5 73 | 20 68 6f 72 69 7a 6f 6e |button.s| horizon|
|00005dd0| 74 61 6c 20 6c 6f 63 61 | 74 69 6f 6e 20 6f 6e 20 |tal loca|tion on |
|00005de0| 74 68 65 20 70 61 6c 65 | 74 74 65 2e 20 54 68 65 |the pale|tte. The|
|00005df0| 20 6c 65 66 74 20 73 69 | 64 65 20 6f 66 20 74 68 | left si|de of th|
|00005e00| 65 20 70 61 6c 65 74 74 | 65 20 69 73 20 63 6f 6f |e palett|e is coo|
|00005e10| 72 64 69 6e 61 74 65 20 | 30 2e 0d 0d 2f 2f 20 4d |rdinate |0...// M|
|00005e20| 6f 76 65 20 74 68 65 20 | 62 75 74 74 6f 6e 20 74 |ove the |button t|
|00005e30| 6f 20 74 68 65 20 6c 65 | 66 74 20 65 64 67 65 20 |o the le|ft edge |
|00005e40| 6f 66 20 74 68 65 20 70 | 61 6c 65 74 74 65 0d 42 |of the p|alette.B|
|00005e50| 75 74 74 6f 6e 2e 4c 65 | 66 74 20 3d 20 30 0d 0d |utton.Le|ft = 0..|
|00005e60| 2e 4c 69 73 74 0d 47 65 | 74 73 20 61 20 6c 69 73 |.List.Ge|ts a lis|
|00005e70| 74 20 6f 66 20 74 68 65 | 20 6e 61 6d 65 73 20 6f |t of the| names o|
|00005e80| 66 20 61 6c 6c 20 74 68 | 65 20 62 75 74 74 6f 6e |f all th|e button|
|00005e90| 73 20 6f 6e 20 74 68 65 | 20 70 61 6c 65 74 74 65 |s on the| palette|
|00005ea0| 2e 20 53 70 65 63 69 66 | 79 20 61 20 70 61 6c 65 |. Specif|y a pale|
|00005eb0| 74 74 65 20 6f 62 6a 65 | 63 74 20 74 6f 20 67 65 |tte obje|ct to ge|
|00005ec0| 74 20 61 20 6c 69 73 74 | 20 6f 66 20 62 75 74 74 |t a list| of butt|
|00005ed0| 6f 6e 20 6e 61 6d 65 73 | 20 66 72 6f 6d 20 61 6e |on names| from an|
|00005ee0| 6f 74 68 65 72 20 70 61 | 6c 65 74 74 65 2e 20 4e |other pa|lette. N|
|00005ef0| 6f 20 62 75 74 74 6f 6e | 20 73 70 65 63 69 66 69 |o button| specifi|
|00005f00| 65 72 20 69 73 20 6e 65 | 63 65 73 73 61 72 79 2e |er is ne|cessary.|
|00005f10| 20 54 68 69 73 20 70 72 | 6f 70 65 72 74 79 20 69 | This pr|operty i|
|00005f20| 73 20 72 65 61 64 2d 6f | 6e 6c 79 2e 0d 0d 2f 2f |s read-o|nly...//|
|00005f30| 20 44 69 73 70 6c 61 79 | 20 61 20 6c 69 73 74 20 | Display| a list |
|00005f40| 62 6f 78 20 63 6f 6e 74 | 61 69 6e 69 6e 67 20 74 |box cont|aining t|
|00005f50| 68 65 20 6e 61 6d 65 73 | 20 61 6c 6c 20 74 68 65 |he names| all the|
|00005f60| 20 62 75 74 74 6f 6e 73 | 20 6f 6e 20 74 68 65 20 | buttons| on the |
|00005f70| 70 61 6c 65 74 74 65 20 | 0d 56 61 72 69 61 62 6c |palette |.Variabl|
|00005f80| 65 20 74 68 65 53 65 6c | 65 63 74 69 6f 6e 0d 74 |e theSel|ection.t|
|00005f90| 68 65 53 65 6c 65 63 74 | 69 6f 6e 20 3d 20 41 73 |heSelect|ion = As|
|00005fa0| 6b 4c 69 73 74 20 42 75 | 74 74 6f 6e 2e 4c 69 73 |kList Bu|tton.Lis|
|00005fb0| 74 0d 0d 2f 2f 20 44 69 | 73 70 6c 61 79 20 61 20 |t..// Di|splay a |
|00005fc0| 6c 69 73 74 20 62 6f 78 | 20 63 6f 6e 74 61 69 6e |list box| contain|
|00005fd0| 69 6e 67 20 74 68 65 20 | 6e 61 6d 65 73 20 6f 66 |ing the |names of|
|00005fe0| 20 61 6c 6c 20 74 68 65 | 20 62 75 74 74 6f 6e 73 | all the| buttons|
|00005ff0| 20 6f 6e 20 74 68 65 20 | 70 61 6c 65 74 74 65 20 | on the |palette |
|00006000| 6e 61 6d 65 64 20 22 43 | 6f 6f 6c 20 54 6f 6f 6c |named "C|ool Tool|
|00006010| 73 22 0d 56 61 72 69 61 | 62 6c 65 20 74 68 65 53 |s".Varia|ble theS|
|00006020| 65 6c 65 63 74 69 6f 6e | 0d 74 68 65 53 65 6c 65 |election|.theSele|
|00006030| 63 74 69 6f 6e 20 3d 20 | 41 73 6b 4c 69 73 74 20 |ction = |AskList |
|00006040| 50 61 6c 65 74 74 65 28 | 22 43 6f 6f 6c 20 54 6f |Palette(|"Cool To|
|00006050| 6f 6c 73 22 29 2e 42 75 | 74 74 6f 6e 2e 4c 69 73 |ols").Bu|tton.Lis|
|00006060| 74 0d 0d 2e 4c 6f 63 61 | 74 69 6f 6e 0d 43 68 61 |t...Loca|tion.Cha|
|00006070| 6e 67 65 73 20 74 68 65 | 20 62 75 74 74 6f 6e d5 |nges the| button.|
|00006080| 73 20 6c 6f 63 61 74 69 | 6f 6e 20 6f 6e 20 74 68 |s locati|on on th|
|00006090| 65 20 70 61 6c 65 74 74 | 65 2e 20 54 68 65 20 2e |e palett|e. The .|
|000060a0| 4c 6f 63 61 74 69 6f 6e | 20 70 72 6f 70 65 72 74 |Location| propert|
|000060b0| 79 20 72 65 71 75 69 72 | 65 73 20 74 77 6f 20 70 |y requir|es two p|
|000060c0| 61 72 61 6d 65 74 65 72 | 73 20 28 6c 65 66 74 20 |arameter|s (left |
|000060d0| 61 6e 64 20 74 6f 70 29 | 20 61 6e 64 20 69 73 20 |and top)| and is |
|000060e0| 77 72 69 74 65 2d 6f 6e | 6c 79 2e 20 55 73 69 6e |write-on|ly. Usin|
|000060f0| 67 20 2e 4c 6f 63 61 74 | 69 6f 6e 20 69 73 20 74 |g .Locat|ion is t|
|00006100| 68 65 20 73 61 6d 65 20 | 61 73 20 75 73 69 6e 67 |he same |as using|
|00006110| 20 2e 4c 65 66 74 20 61 | 6e 64 20 2e 54 6f 70 2c | .Left a|nd .Top,|
|00006120| 20 65 78 63 65 70 74 20 | 69 74 20 72 65 64 72 61 | except |it redra|
|00006130| 77 73 20 74 68 65 20 62 | 75 74 74 6f 6e 20 6f 6e |ws the b|utton on|
|00006140| 6c 79 20 6f 6e 63 65 20 | 69 6e 73 74 65 61 64 20 |ly once |instead |
|00006150| 6f 66 20 74 77 69 63 65 | 2e 0d 0d 2f 2f 20 4d 6f |of twice|...// Mo|
|00006160| 76 65 20 74 68 65 20 51 | 75 69 63 6b 65 6e 20 62 |ve the Q|uicken b|
|00006170| 75 74 74 6f 6e 20 74 6f | 20 74 68 65 20 75 70 70 |utton to| the upp|
|00006180| 65 72 2d 6c 65 66 74 20 | 63 6f 72 6e 65 72 20 6f |er-left |corner o|
|00006190| 66 20 74 68 65 20 70 61 | 6c 65 74 74 65 0d 2f 2f |f the pa|lette.//|
|000061a0| 20 4c 65 61 76 65 20 61 | 20 32 2d 70 69 78 65 6c | Leave a| 2-pixel|
|000061b0| 20 6d 61 72 67 69 6e 20 | 62 65 74 77 65 65 6e 20 | margin |between |
|000061c0| 74 68 65 20 65 64 67 65 | 73 20 6f 66 20 74 68 65 |the edge|s of the|
|000061d0| 20 62 75 74 74 6f 6e 20 | 61 6e 64 20 74 68 65 20 | button |and the |
|000061e0| 70 61 6c 65 74 74 65 0d | 42 75 74 74 6f 6e 28 22 |palette.|Button("|
|000061f0| 51 75 69 63 6b 65 6e 22 | 29 2e 4c 6f 63 61 74 69 |Quicken"|).Locati|
|00006200| 6f 6e 20 3d 20 32 2c 20 | 32 0d 0d 2e 4d 6f 64 65 |on = 2, |2...Mode|
|00006210| 0d 47 65 74 73 20 6f 72 | 20 73 65 74 73 20 74 68 |.Gets or| sets th|
|00006220| 65 20 61 70 70 65 61 72 | 61 6e 63 65 20 6f 66 20 |e appear|ance of |
|00006230| 74 68 65 20 62 75 74 74 | 6f 6e 2e 20 2e 4d 6f 64 |the butt|on. .Mod|
|00006240| 65 20 69 73 20 61 20 6e | 75 6d 62 65 72 20 30 d0 |e is a n|umber 0.|
|00006250| 37 20 74 68 61 74 20 63 | 6f 72 72 65 73 70 6f 6e |7 that c|orrespon|
|00006260| 64 73 20 74 6f 20 61 20 | 73 65 74 74 69 6e 67 20 |ds to a |setting |
|00006270| 69 6e 20 74 68 65 20 41 | 70 70 65 61 72 61 6e 63 |in the A|ppearanc|
|00006280| 65 20 70 6f 70 2d 75 70 | 20 6d 65 6e 75 20 69 6e |e pop-up| menu in|
|00006290| 20 74 68 65 20 42 75 74 | 74 6f 6e 20 45 64 69 74 | the But|ton Edit|
|000062a0| 6f 72 2e 20 41 20 62 75 | 74 74 6f 6e d5 73 20 64 |or. A bu|tton.s d|
|000062b0| 65 66 61 75 6c 74 20 61 | 70 70 65 61 72 61 6e 63 |efault a|ppearanc|
|000062c0| 65 20 69 73 20 4e 6f 72 | 6d 61 6c 20 28 30 29 2e |e is Nor|mal (0).|
|000062d0| 0d 0d 30 3a 20 4e 6f 72 | 6d 61 6c 0d 31 3a 20 50 |..0: Nor|mal.1: P|
|000062e0| 75 73 68 65 64 0d 32 3a | 20 44 69 73 61 62 6c 65 |ushed.2:| Disable|
|000062f0| 64 0d 33 3a 20 49 6e 76 | 65 72 74 65 64 0d 34 3a |d.3: Inv|erted.4:|
|00006300| 20 4c 69 67 68 74 65 72 | 0d 35 3a 20 44 61 72 6b | Lighter|.5: Dark|
|00006310| 65 72 0d 36 3a 20 50 75 | 73 68 65 64 2f 44 61 72 |er.6: Pu|shed/Dar|
|00006320| 6b 65 72 0d 37 3a 20 44 | 69 73 61 62 6c 65 64 2f |ker.7: D|isabled/|
|00006330| 4c 69 67 68 74 65 72 0d | 0d 2f 2f 20 53 65 74 20 |Lighter.|.// Set |
|00006340| 74 68 65 20 62 75 74 74 | 6f 6e d5 73 20 61 70 70 |the butt|on.s app|
|00006350| 65 61 72 61 6e 63 65 20 | 61 63 63 6f 72 64 69 6e |earance |accordin|
|00006360| 67 20 74 6f 20 74 68 65 | 20 61 70 70 65 61 72 61 |g to the| appeara|
|00006370| 6e 63 65 20 6f 66 20 61 | 20 6d 65 6e 75 20 63 6f |nce of a| menu co|
|00006380| 6d 6d 61 6e 64 0d 2f 2f | 20 49 66 20 42 6f 6c 64 |mmand.//| If Bold|
|00006390| 20 69 73 20 64 69 6d 6d | 65 64 20 69 6e 20 74 68 | is dimm|ed in th|
|000063a0| 65 20 53 74 79 6c 65 20 | 6d 65 6e 75 2c 20 74 68 |e Style |menu, th|
|000063b0| 65 6e 20 6d 61 6b 65 20 | 74 68 65 20 62 75 74 74 |en make |the butt|
|000063c0| 6f 6e 20 6c 69 67 68 74 | 65 72 20 61 6e 64 20 64 |on light|er and d|
|000063d0| 69 73 61 62 6c 65 64 0d | 49 66 20 4e 4f 54 20 4d |isabled.|If NOT M|
|000063e0| 65 6e 75 28 22 53 74 79 | 6c 65 22 2c 20 22 42 6f |enu("Sty|le", "Bo|
|000063f0| 6c 64 22 29 2e 45 6e 61 | 62 6c 65 64 20 0d 20 20 |ld").Ena|bled . |
+--------+-------------------------+-------------------------+--------+--------+
Only 25.0 KB of data is shown above.